Bugfix: Move REQUIRED_ARGS from _client_vars to environment.yaml #458
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: unit tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
paths: | |
- .pre-commit-config.yaml | |
- .github/workflows/code_checks.yml | |
- .github/workflows/docs_build.yml | |
- .github/workflows/docs_deploy.yml | |
- .github/workflows/unit_tests.yml | |
- .github/workflows/integration_tests.yml | |
- '**.py' | |
- '**.ipynb' | |
- uv.lock | |
- pyproject.toml | |
- '**.rst' | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
- develop | |
paths: | |
- .pre-commit-config.yaml | |
- .github/workflows/code_checks.yml | |
- .github/workflows/docs_build.yml | |
- .github/workflows/docs_deploy.yml | |
- .github/workflows/unit_tests.yml | |
- .github/workflows/integration_tests.yml | |
- '**.py' | |
- '**.ipynb' | |
- uv.lock | |
- pyproject.toml | |
- '**.rst' | |
- '**.md' | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/[email protected] | |
- name: Install uv | |
uses: astral-sh/setup-uv@v6 | |
with: | |
# Install a specific version of uv. | |
version: "0.5.21" | |
enable-cache: true | |
- name: "Set up Python ${{ matrix.python-version }}" | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install the project | |
run: uv sync --dev | |
- name: Install dependencies and check code | |
run: | | |
uv run pytest -m "not integration_test" --cov vec_inf --cov-report=xml tests | |
- name: Install the core package only | |
run: uv sync --no-dev | |
- name: Run package import tests | |
run: | | |
uv run pytest tests/test_imports.py | |
- name: Import Codecov GPG public key | |
run: | | |
gpg --keyserver keyserver.ubuntu.com --recv-keys 806BB28AED779869 | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
name: codecov-umbrella | |
fail_ci_if_error: true | |
verbose: true |