Skip to content

Commit

Permalink
Add unit test workflow job
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Oct 9, 2024
1 parent d9a297b commit 5f1d360
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
python-version:
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v4
- name: Install uv
Expand All @@ -49,6 +48,27 @@ jobs:
run: |
uv venv
uv pip install tox-uv tox-gh-actions
- name: Test with tox
- name: Test building with tox
run: uv run tox r


unit:
name: Unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv venv
uv pip install -U -e ".[test]"
- name: Run unittest
run: uv run pytest

0 comments on commit 5f1d360

Please sign in to comment.