Skip to content

Commit

Permalink
🚇 Run pytest and pip as python module with 'python -m'
Browse files Browse the repository at this point in the history
This prevents and esoteric CI bug
  • Loading branch information
s-weigand authored and jsnel committed Nov 14, 2022
1 parent 1580777 commit 818f807
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/CI_CD_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
run: |
conda install -y pandoc
python -m pip install -U pip wheel
pip install .
python -m pip install .
python -m pip install -U -r docs/requirements.txt
- name: Show installed packages
run: pip freeze
Expand All @@ -80,7 +80,7 @@ jobs:
run: |
conda install -y pandoc
python -m pip install -U pip wheel
pip install .
python -m pip install .
python -m pip install -U -r docs/requirements.txt
- name: Show installed packages
run: pip freeze
Expand All @@ -106,10 +106,10 @@ jobs:
python -m pip install -U -r requirements_dev.txt
pip install .
- name: Show installed packages
run: pip freeze
run: python -m pip freeze
- name: Build docs
run: |
py.test -vv --nbval docs/source/notebooks
python -m pytest -vv --nbval docs/source/notebooks
test:
runs-on: ${{ matrix.os }}
Expand All @@ -129,12 +129,12 @@ jobs:
run: |
python -m pip install --upgrade pip wheel
python -m pip install -r requirements_dev.txt
pip install -e .
python -m pip install -e .
- name: Show installed packages
run: pip freeze
run: python -m pip freeze
- name: Run tests
run: |
pytest --cov=./ --cov-report term --cov-report xml --cov-config pyproject.toml glotaran
python -m pytest --cov=./ --cov-report term --cov-report xml --cov-config pyproject.toml glotaran
- name: Codecov Upload
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 818f807

Please sign in to comment.