Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,21 @@ jobs:
IntegrationTestCoverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v3
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -e '.[dev]'
- name: Test Coverage
version: 0.10.4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: pyproject.toml
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Integration Test Coverage
run: |-
pytest --junitxml=pytest.xml --cov-report=term-missing --cov=src tests/*/test_integration_*.py | tee pytest-coverage.txt
uv run pytest --junitxml=pytest.xml --cov-report=term-missing --cov=src tests/*/test_integration_*.py | tee pytest-coverage.txt
- name: Comment coverage
uses: coroo/pytest-coverage-commentator@v1.0.2
86 changes: 33 additions & 53 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,83 +16,63 @@ jobs:
strategy:
fail-fast: false
matrix:
python-versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-versions: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: 0.10.4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-versions }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -e '.[dev]'
- name: Test with pytest
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Unit tests with pytest
run: |
pytest src/*/test_*.py
uv run pytest src
integration_tests:
runs-on: ubuntu-latest
needs: unit_tests
strategy:
fail-fast: true
matrix:
# no 3.11 as it's covered by the Coverage job.
python-versions: ['3.8', '3.9', '3.10', '3.12']
python-versions: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: 0.10.4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-versions }}
- name: Install dependencies
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Unit tests with pytest
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e '.[dev]'
- name: Test with pytest
run: |
pytest tests/*/test_integration_*.py
uv run pytest tests/*/test_integration_*.py
system_tests:
needs: integration_tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-versions: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: 0.10.4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-versions }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e '.[dev]'
- name: Test with pytest
run: |
pytest tests/*/test_system_*.py
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
- uses: psf/black@stable
with:
options: --check --verbose
src: ./src
version: ~= 22.0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install flake8
- name: Lint with flake8
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Unit tests with pytest
run: |-
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
uv run pytest tests/*/test_system_*.py
20 changes: 20 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Style
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/ruff-action@v3
with:
src: ./src
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Build Products
*.egg-info
*__pycache__
.python-version

# Test Products
.coverage

# Dev Products
*__pycache__
.ruff_cache
.venv
.vscode
env
test_venv
Loading