Skip to content

ci(publish): drop softprops/action-gh-release for gh release create #49

ci(publish): drop softprops/action-gh-release for gh release create

ci(publish): drop softprops/action-gh-release for gh release create #49

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test dependencies
run: pip install -e ".[dev]"
- name: Run tests with coverage
run: pytest tests/ -v --cov --cov-report=term --cov-report=xml --report
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: test-report-py${{ matrix.python-version }}
path: tests/TEST_REPORT.md
- name: Post report to job summary
if: always() && matrix.python-version == '3.12'
run: cat tests/TEST_REPORT.md >> "$GITHUB_STEP_SUMMARY"
- name: Upload coverage to Codecov
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
fail_ci_if_error: false