diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2eb274..bef0af3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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 diff --git a/tests/__init__.py b/tests/__init__.py index e69de29..099af14 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,2 @@ +from . import test_all + diff --git a/tests/test_all.py b/tests/test_all.py index 3b7a40e..052247d 100644 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -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')