Skip to content

Commit

Permalink
chore(ci): use poetry env use for windows runs
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed Mar 25, 2024
1 parent 5b49050 commit 1c4081d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ jobs:
uses: actions/checkout@v4

- name: Override Python version for Poetry
run: sed -i -e 's#^python\s*=.*$#python = "^${{ matrix.python-version }}"#g' pyproject.toml
run: sed -i -e 's#^python\s*=.*$#python = "^${{ matrix.python-version }}"#g' pyproject.toml

- name: Restore Python dependencies
run: poetry lock && poetry install

- name: Test
shell: bash
run: .venv/bin/python -m unittest discover -v -s tests
run: |
poetry env use .venv/bin/python
python -m unittest discover -v -s tests

0 comments on commit 1c4081d

Please sign in to comment.