diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 33643ba..c49fcff 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,5 +26,8 @@ jobs: - name: Lint with Flake8 run: | - python -m pip install flake8 -c ./requirements.txt + python3 -m venv .venv + . .venv/bin/activate + + python3 -m pip install flake8 -c ./requirements.txt flake8 --statistics . diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 034b966..809bf75 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,6 +42,14 @@ jobs: - name: Run Python tests run: | + python3 -m venv .venv + . .venv/bin/activate + python3 -m pip install --upgrade pip python3 -m pip install .[test] - pytest -m "not wheel" + + # change running directory + mkdir testrun + cd testrun + + pytest $GITHUB_WORKSPACE -m "not wheel"