Skip to content

Commit

Permalink
Update codecov action to v3 and add token (#274)
Browse files Browse the repository at this point in the history
* update codecov action to v3 and add token

* bump other actions versions
  • Loading branch information
mahmoud committed Nov 8, 2023
1 parent 74bcba5 commit c8502f2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
- {name: 'PyPy3', python: 'pypy-3.9', os: ubuntu-latest, tox: pypy3}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: update pip
Expand All @@ -40,15 +40,16 @@ jobs:
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"
- name: cache pip
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
- run: pip install tox
- run: tox -e ${{ matrix.tox }},coverage-report
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v2"
uses: "codecov/codecov-action@v3"
with:
fail_ci_if_error: true
files: ./.tox/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit c8502f2

Please sign in to comment.