Fix #456
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: Pytest | |
on: | |
schedule: | |
- cron: 0 13 * * 1 # Every Monday at 1PM UTC (9AM EST) | |
pull_request: | |
# test in containerised and OS environments | |
jobs: | |
test-container: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- run: npm install -g @devcontainers/[email protected] | |
- run: devcontainer up --workspace-folder=. | |
- run: devcontainer exec --workspace-folder=. uv venv | |
- run: devcontainer exec --workspace-folder=. uv lock --check -p 3.11 | |
- run: devcontainer exec --workspace-folder=. uv pip install -e . | |
- run: devcontainer exec --workspace-folder=. uv run pre-commit run --verbose --all-files | |
- run: devcontainer exec --workspace-folder=. uv run pytest | |
pytest: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-24.04 | |
- macos-14 | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: pipx install uv | |
- run: uv venv | |
- run: uv pip install -e . | |
- run: uv run pytest |