build(deps): bump mypy from 1.10.1 to 1.12.1 #312
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: Tests (docker) | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
schedule: | |
- cron: "0 0 * * 1" # once a week on monday | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
name: ${{ matrix.python }} / ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest"] | |
python: ["3.11"] | |
env: | |
FORCE_COLOR: "1" | |
PRE_COMMIT_COLOR: "always" | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Free Disk Space # the caikit-tgis-serving images can be fairly large, and pulling them might make this test fail | |
uses: jlumbroso/free-disk-space@v1.3.1 | |
with: | |
tool-cache: false | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v5.1.0 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Upgrade pip | |
run: | | |
pip install -U pip | |
pip --version | |
- name: Install Nox | |
run: | | |
pip install nox | |
nox --version | |
- name: Run tests | |
run: | | |
nox -v --session tests-${{ matrix.python }} -- --real-caikit --cov-report=xml | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v4 | |
if: always() | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: coverage.xml | |
fail_ci_if_error: true |