Skip to content

Fix import side effect #158

Fix import side effect

Fix import side effect #158

Workflow file for this run

name: unit tests
permissions:
contents: read
pull-requests: write
on:
push:
branches:
- main
paths:
- .pre-commit-config.yaml
- .github/workflows/code_checks.yml
- .github/workflows/docs.yml
- .github/workflows/unit_tests.yml
- '**.py'
- '**.ipynb'
- uv.lock
- pyproject.toml
- '**.rst'
- '**.md'
pull_request:
branches:
- main
paths:
- .pre-commit-config.yaml
- .github/workflows/code_checks.yml
- .github/workflows/docs.yml
- .github/workflows/unit_tests.yml
- '**.py'
- '**.ipynb'
- uv.lock
- pyproject.toml
- '**.rst'
- '**.md'
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca
with:
# Install a specific version of uv.
version: "0.5.21"
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
with:
python-version-file: ".python-version"
# - name: Install dependencies and check code
# run: |
# uv run pytest -m "not integration_test" --cov src/aieng_template_uv --cov-report=xml tests
# Uncomment this once this repo is configured on Codecov
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: VectorInstitute/aieng-template-uv
# fail_ci_if_error: true
# verbose: true