Skip to content

Commit c1c57f3

Browse files
windows-specific source command
1 parent bc701c0 commit c1c57f3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/github-actions.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,25 @@ jobs:
101101
python-version: ${{ matrix.python }}
102102
architecture: ${{ matrix.python_arch }}
103103

104-
- name: test
104+
- name: test [unix-like shells]
105+
if: runner.os != 'Windows'
105106
run: |
106107
${{ steps.setup.outputs.python-path }} -m venv .venv
107108
source .venv/bin/activate
108109
python -m pip install --upgrade pip
109110
pip install -r ci/requirements.txt
110111
tox -e ${{ matrix.tox_env }} -v
111112
113+
- name: test [windows]
114+
if: runner.os == 'Windows'
115+
shell: pwsh
116+
run: |
117+
${{ steps.setup.outputs.python-path }} -m venv .venv
118+
. .venv\Scripts\activate
119+
python -m pip install --upgrade pip
120+
pip install -r ci/requirements.txt
121+
tox -e ${{ matrix.tox_env }} -v
122+
112123
coveralls:
113124
name: Upload coverage to Coveralls
114125
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)