Skip to content

Commit

Permalink
Adds test with venv to the GitHub actions CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-smallshire committed Mar 5, 2024
1 parent cd65420 commit 4d31a77
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,25 @@ jobs:
export VENV_MANAGEMENT_SETUP_FILEPATH=${HOME}/.venvwraprc
python -m pytest tests
test-with-venv:
name: "Pytest with venv"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: "Set up Python"
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: "Install dependencies"
run: |
python -m pip install --user --upgrade pip
python -m pip install .[test]
- name: "Run Pytest"
run: |
export WORKON_HOME=${HOME}/.virtualenvs
export VENV_MANAGEMENT_PREFERRED_DRIVERS=venv
python -m pytest tests
package:
name: "Build Package Distributions"
needs:
Expand All @@ -189,6 +208,7 @@ jobs:
- test-with-virtualenvwrapper-interactive
- test-with-virtualenvwrapper-and-venvwraprc-noninterative
- test-with-virtualenvwrapper-and-venvwraprc-interactive
- test-with-venv
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
Expand Down

0 comments on commit 4d31a77

Please sign in to comment.