Skip to content

feat: trainer add post-pretrain and using api v2 #903

feat: trainer add post-pretrain and using api v2

feat: trainer add post-pretrain and using api v2 #903

Workflow file for this run

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