Skip to content

Commit

Permalink
fixing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-zieba committed Feb 21, 2024
1 parent 6edb48d commit d4bf90d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -38,13 +38,13 @@ jobs:
pytest tests --cov=./src/pacman --cov-report=xml
- name: Upload coverage.xml as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.xml

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
Expand Down
2 changes: 2 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import test_all

4 changes: 2 additions & 2 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from pacman.lib.gaussfitter import gaussfit as gaussfit
from pacman.lib import optextr

src_dir = Path.cwd() / 'src'
sys.path.insert(0, src_dir)
#src_dir = Path.cwd() / 'src'
#sys.path.insert(0, src_dir)

# HACK: Sets the encoding to utf-8 for the Github tests.
sys.stdout.reconfigure(encoding='utf-8')
Expand Down

0 comments on commit d4bf90d

Please sign in to comment.