Skip to content

add concurrency grp to tests to avoid dupes #111

add concurrency grp to tests to avoid dupes

add concurrency grp to tests to avoid dupes #111

Workflow file for this run

name: Tests
on:
push:
pull_request:
branches:
- main
jobs:
run-tests:
runs-on: ubuntu-latest
environment: test
concurrency:
group: unit_tests
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python Dependencies
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install --system --break-system-packages -r requirements.txt
uv pip install --system --break-system-packages pytest pytest-cov pytest-github-report pytest-github-actions-annotate-failures
- name: Run Unit Tests
env:
pytest_github_report: true
pytest_verbosity: 2
run: pytest -v --cov=src --cov-report=xml --cov-report=term-missing --color=yes sg2t/tests/