Skip to content

Feat/bugfixes tests cicd #3

Feat/bugfixes tests cicd

Feat/bugfixes tests cicd #3

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package with test dependencies
run: |
pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests
run: pytest src/tests -v --tb=short --no-header
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.python-version }}
path: .pytest_cache/