feat: trainer add post-pretrain and using api v2 #903
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
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
workflow_dispatch: | |
name: Build | |
defaults: | |
run: | |
shell: bash | |
env: | |
RUFF_OUTPUT_FORMAT: github | |
jobs: | |
build: | |
name: Build tool | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- 'ubuntu-latest' | |
- 'macos-latest' | |
- 'windows-latest' | |
python-version: | |
- '3.7' | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: ${{matrix.python-version}} | |
# Only runs when key from caching step changes | |
- name: Install latest version of Poetry | |
if: steps.cache-poetry.outputs.cache-hit != 'true' | |
run: | | |
pip install poetry | |
# Poetry still needs to be re-prepended to the PATH on each run, since | |
# PATH does not persist between runs. | |
- name: Add Poetry to $PATH | |
run: | | |
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | |
- name: Get Poetry version | |
run: poetry --version | |
- name: Install deps | |
if: steps.cache-deps.cache-hit != 'true' | |
run: | | |
make install | |
- name: run lint | |
run: make lint | |
- name: Run tests | |
run: make test | |
- name: Build artifacts | |
run: make build |