Skip to content

Commit

Permalink
modernize GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Jun 29, 2024
1 parent 8f638f7 commit c633b98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .coveragerc

This file was deleted.

15 changes: 9 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
- {name: Python 3.11, python: '3.11', os: ubuntu}
- {name: Python 3.12, python: '3.12', os: ubuntu}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install libxml2
Expand All @@ -33,9 +33,12 @@ jobs:
sudo apt-get install libxml2-dev libxslt-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools tox
python -m pip install --upgrade pip setuptools pytest pytest-xdist xmlschema
- name: Test
run: |
tox -e py -v --color=yes
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
pytest --cov=./nfelib --cov-report=xml --cov-branch --doctest-glob="docs/*.md"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

0 comments on commit c633b98

Please sign in to comment.