Skip to content

Commit

Permalink
use Codacy action
Browse files Browse the repository at this point in the history
  • Loading branch information
widdowquinn committed Feb 24, 2024
1 parent 341e3a5 commit c8ea529
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,19 @@ jobs:
- name: Run Tests with pytest
run: python -m pytest -v --cov=pyani --cov-report=xml:.coverage-linux-${{ matrix.python-version }}.xml

- name: Upload coverage Results
- name: Store coverage Results
uses: actions/upload-artifact@v4
with:
name: test-coverage-linux-${{ matrix.python-version }}
path: .coverage-linux-${{ matrix.python-version }}.xml
retention-days: 3
if: ${{ always() }}

- name: Codacy Coverage Report
run:
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
-r .coverage-linux-${{ matrix.python-version }}.xml
- name: Codacy Coverage Reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: .coverage-linux-${{ matrix.python-version }}.xml
if: ${{ always() }}

- name: Codecov Coverage Report
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Run Tests with pytest
run: python -m pytest -v --cov=pyani --cov-report=xml:.coverage-macos-${{ matrix.python-version }}.xml

- name: Upload coverage results
- name: Store coverage results
uses: actions/upload-artifact@v4
with:
name: test-coverage-macos-${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ setup_env_macos: setup_conda setup_conda_macos setup_pip
@pre-commit install
@pip install -U -e .

setup_env_macos: setup_conda setup_conda_linux setup_pip
setup_env_linux: setup_conda setup_conda_linux setup_pip
@pre-commit install
@pip install -U -e .

Expand Down

0 comments on commit c8ea529

Please sign in to comment.