Skip to content

Commit

Permalink
update ci.yml to run in multiple python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rvhonorato committed Oct 3, 2024
1 parent a325426 commit 3511ab2
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,35 @@ on: push

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}

- uses: snok/install-poetry@v1
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true

- run: poetry install --no-interaction --no-root
- name: install prodig
run: poetry install --no-interaction --no-root

- run: poetry run pytest --cov --cov-report xml:coverage.xml --cov-append -vv --hypothesis-show-statistics
- name: run tests
run: >-
poetry run pytest --cov
--cov-report xml:coverage.xml
--cov-append
-vv
--hypothesis-show-statistics
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
Expand Down

0 comments on commit 3511ab2

Please sign in to comment.