Parallelizing the computation of the multi-target model difference metric #534
Workflow file for this run
This file contains hidden or 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: code checks | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .pre-commit-config.yaml | |
| - .github/workflows/code_checks.yml | |
| - '**.py' | |
| - uv.lock | |
| - pyproject.toml | |
| - '**.ipynb' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - .pre-commit-config.yaml | |
| - .github/workflows/code_checks.yml | |
| - '**.py' | |
| - uv.lock | |
| - pyproject.toml | |
| - '**.ipynb' | |
| jobs: | |
| run-code-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 | |
| with: | |
| # Install a specific version of uv. | |
| version: "0.5.21" | |
| enable-cache: true | |
| - name: "Set up Python" | |
| uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c | |
| with: | |
| python-version-file: ".python-version" | |
| - name: Install the project | |
| run: uv sync --all-extras --dev | |
| - name: Install dependencies and check code | |
| run: | | |
| source .venv/bin/activate | |
| pre-commit run --all-files | |
| - name: pip-audit (gh-action-pip-audit) | |
| uses: pypa/gh-action-pip-audit@1220774d901786e6f652ae159f7b6bc8fea6d266 | |
| with: | |
| virtual-environment: .venv/ | |
| # GHSA-4xh5-x5gv-qwph: This is a vulnerability in pip 25.2 that has no fix version yet | |
| ignore-vulns: | | |
| GHSA-4xh5-x5gv-qwph |