Skip to content

Commit

Permalink
Move Windows specific test config
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias Ericsson-Rydberg committed Nov 14, 2024
1 parent c34b6d2 commit a56e052
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,24 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
if: runner.os != 'Windows'
- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
if [ "$RUNNER_OS" == "Windows" ]; then
.\.venv\Scripts\Activate.ps1
else
source .venv/bin/activate
fi
python -m ensurepip --upgrade
pip install -r requirements-dev.txt
- name: Install dependencies
if: runner.os == 'Windows'
run: |
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m ensurepip --upgrade
pip install -r requirements-dev.txt
- name: Run tests
if: runner.os != 'Windows'
run: |
source .venv/bin/activate
pytest -v
- name: Run tests
if: runner.os == 'Windows'
run: |
.\.venv\Scripts\Activate.ps1
if [ "$RUNNER_OS" == "Windows" ]; then
.\.venv\Scripts\Activate.ps1
else
source .venv/bin/activate
fi
pytest -v
format:
Expand Down

0 comments on commit a56e052

Please sign in to comment.