Update deepspeed version and corresponding conda-lock.yml #63
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
basic-check: | |
runs-on: ubuntu-latest | |
outputs: | |
tag: ${{ steps.read_version.outputs.value }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout Actions | |
uses: actions/checkout@v3 | |
with: | |
repository: 01-ai/actions | |
token: ${{ secrets.PAT_TO_CLONE_ACTIONS }} | |
path: actions | |
ref: main | |
- name: Basic check | |
uses: ./actions/lint | |
# https://github.com/actions/checkout/issues/692#issuecomment-1502203573 | |
- name: Checkout Actions | |
uses: actions/checkout@v3 | |
with: | |
repository: 01-ai/actions | |
token: ${{ secrets.PAT_TO_CLONE_ACTIONS }} | |
path: actions | |
ref: main | |
# try to create a tag | |
- uses: SebRollen/toml-action@v1.0.2 | |
id: read_version | |
with: | |
file: "pyproject.toml" | |
field: "tool.poetry.version" | |
- uses: rickstaa/action-create-tag@v1 | |
id: "tag_create" | |
if: (github.ref_name == github.event.repository.default_branch) && !contains(steps.read_version.outputs.value, '-') | |
with: | |
tag: ${{ steps.read_version.outputs.value }} | |
build-and-push: | |
runs-on: | |
- public | |
needs: basic-check | |
outputs: | |
primary_tag: ${{ steps.build-and-push.outputs.primary_tag }} | |
matrix: ${{ steps.build-and-push.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout Actions | |
uses: actions/checkout@v3 | |
with: | |
repository: 01-ai/actions | |
token: ${{ secrets.PAT_TO_CLONE_ACTIONS }} | |
path: actions | |
ref: main | |
- name: Set proxy | |
run: | | |
echo "http_proxy=$http_proxy" >> $GITHUB_ENV | |
echo "https_proxy=$https_proxy" >> $GITHUB_ENV | |
- name: Build Docker Image | |
id: build-and-push | |
uses: ./actions/build_docker_image | |
with: | |
registry: ${{ secrets.DEFAULT_REGISTRY }} | |
namespace: ci | |
tags: ${{ needs.basic-check.outputs.tag }} | |
username: ${{ secrets.DEFAULT_REGISTRY_USER }} | |
password: ${{ secrets.DEFAULT_REGISTRY_PASSWORD }} |