Merge pull request #175 from bwheelz36/bwheelz36-patch-4 #205
This file contains 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: tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install test dependencies | |
run: | | |
poetry install --with dev | |
- name: Test with pytest | |
run: | | |
poetry run pytest --cov-report xml --cov=ParticlePhaseSpace/ | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |