Skip to content

Commit

Permalink
Try with default shell
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Feb 19, 2024
1 parent 23fc76a commit 08fc5e3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ jobs:
python-version: ["3.10", "3.11", "3.12"]
fail-fast: false

defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v4
Expand All @@ -63,6 +60,7 @@ jobs:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
shell: "bash"
# Installing uv via curl is much faster than via pip,
# but there doesn't seem to be a great alternative to pip on Windows
# in the context of GitHub Actions
Expand All @@ -77,16 +75,16 @@ jobs:
- name: Create and activate a virtual environment
run: |
uv venv .venv
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
echo "$PWD/.venv/Scripts" >> $GITHUB_PATH
"VIRTUAL_ENV=.venv" | Out-File -FilePath $env:GITHUB_ENV -Append
"$PWD/.venv/Scripts" | Out-File -FilePath $env:$GITHUB_PATH -Append
- run: env
- name: Install dependencies
run: uv pip install -e ".[pytest]"
- run: uv pip freeze
- name: Run tests under coverage
run: |
coverage run -m pytest --doctest-modules
coverage report --no-skip-covered
coverage report --no-skip-covered
create-issue-on-failure:
name: Create an issue if daily test failed
Expand Down

0 comments on commit 08fc5e3

Please sign in to comment.