Skip to content

Commit

Permalink
CI.yml: added Codacy coverage reporter action
Browse files Browse the repository at this point in the history
  • Loading branch information
kvrigor committed Oct 2, 2024
1 parent cd78ac3 commit 1bafc85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Install project
run: |
python -m pip install .
python -m pip install .[test]
python -m pip freeze
- name: Test Pyccel optimization flags
Expand All @@ -174,7 +174,13 @@ jobs:
run: |
export PSYDAC_MESH_DIR=$GITHUB_WORKSPACE/mesh
export OMP_NUM_THREADS=2
python -m pytest -n auto --cov psydac.api --pyargs psydac -m "not parallel and not petsc"
python -m pytest -n auto --cov psydac --cov-report xml:coverage.xml --pyargs psydac -m "not parallel and not petsc"
- name: Run Codacy coverage reporter
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml

- name: Run MPI tests with Pytest
working-directory: ./pytest
Expand All @@ -197,12 +203,6 @@ jobs:
export OMP_NUM_THREADS=2
python mpi_tester.py --mpirun="mpiexec -n 4 ${MPI_OPTS}" --pyargs psydac -m "parallel and petsc"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: kvrigor/psydac

- name: Remove test directory
if: ${{ always() }}
run: |
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ dependencies = [
'igakit @ https://github.com/dalcinl/igakit/archive/refs/heads/master.zip'
]

[project.optional-dependencies]
test = [
"pytest-cov >= 5.0.0",
]

[project.urls]
Homepage = "https://github.com/pyccel/psydac"
Documentation = "https://pyccel.github.io/psydac"
Expand Down

0 comments on commit 1bafc85

Please sign in to comment.