Skip to content

Commit

Permalink
replace codacy with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
kingarrrt committed Oct 14, 2023
1 parent af08673 commit 56f30e4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 22 deletions.
50 changes: 30 additions & 20 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,45 @@ on:
pull_request:

jobs:
check:
lint:
runs-on: ubuntu-latest
env:
RUFF_FORMAT: github
steps:
- uses: 0compute/py-skeleton@main
with:
cachix-authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: ruff check .
test:
runs-on: ubuntu-latest
env:
ARGS: -vv
COV_REPORT: xml
RUFF_FORMAT: github
strategy:
matrix:
test:
- utest
- ftest
- atest
steps:
- uses: actions/checkout@v4
- uses: 0compute/py-skeleton@main
with:
submodules: recursive
cachix-authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: actions/cache@v3
with:
path: /var/tmp/distinfo-test-packages
key: test-packages-${{ hashFiles('tests/acceptance/test_packages.yaml') }}
- uses: DeterminateSystems/nix-installer-action@v6
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: cachix/cachix-action@v12
- run: make ${{ matrix.test }}
- uses: coverallsapp/github-action@v2
with:
name: distinfo
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: HatsuneMiku3939/direnv-action@v1
- run: ruff check .
- run: make utest
- run: make ftest
- run: make atest
env:
ARGS: -xvv --flake-finder
- run: make coverage-combined
- uses: codacy/codacy-coverage-reporter-action@v1.3.0
file: coverage-${{ matrix.test }}.xml
flag-name: ${{ matrix.test }}
parallel: true
coveralls:
needs: test
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@v2
with:
api-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: coverage.xml
parallel-finished: true
carryforward: ${{ join(matrix.*, ',') }}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Distinfo

[![Quality](https://app.codacy.com/project/badge/Grade/810984e4772f4a20863e1c384c54a5a6)](https://app.codacy.com/gh/0compute/distinfo/dashboard)
[![Coverage](https://app.codacy.com/project/badge/Coverage/810984e4772f4a20863e1c384c54a5a6)](https://app.codacy.com/gh/0compute/distinfo/dashboard)
[![Coverage](https://coveralls.io/repos/github/0compute/distinfo/badge.svg?branch=main)](https://coveralls.io/github/0compute/distinfo?branch=main)

`distinfo` is a library for extracting metadata from Python distributions.

Expand Down

0 comments on commit 56f30e4

Please sign in to comment.