Issue 64 uv #168
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 For Development | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
- main-next-release | |
push: | |
branches: | |
- main | |
- main-next-release | |
jobs: | |
test: | |
strategy: | |
matrix: | |
include: | |
# Define specific Python versions for each OS | |
- os: ubuntu-latest | |
python-version: 3.11 | |
# - os: windows-latest | |
# python-version: 3.11 | |
# - os: macos-latest | |
# python-version: 3.11 | |
- os: ubuntu-latest | |
python-version: 3.12 | |
- os: ubuntu-latest | |
python-version: 3.13 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Install dependencies | |
run: | | |
uv venv .venv | |
source .venv/bin/activate | |
uv pip sync tests/uv.lock | |
uv pip install coverage | |
- name: Run unit tests and generate coverage report | |
run: | | |
source .venv/bin/activate | |
uv run coverage run -m unittest discover -s tests -p 'test_*.py' | |
uv run coverage report -m | |
- name: Upload coverage report to codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |