Skip to content

Commit ffccfda

Browse files
for macos, run pytest directly, bypassing tox for the test execution step
1 parent c1c57f3 commit ffccfda

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/github-actions.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,29 @@ jobs:
101101
python-version: ${{ matrix.python }}
102102
architecture: ${{ matrix.python_arch }}
103103

104-
- name: test [unix-like shells]
105-
if: runner.os != 'Windows'
104+
- name: test [linux]
105+
if: runner.os == 'Linux'
106106
run: |
107107
${{ steps.setup.outputs.python-path }} -m venv .venv
108108
source .venv/bin/activate
109109
python -m pip install --upgrade pip
110110
pip install -r ci/requirements.txt
111111
tox -e ${{ matrix.tox_env }} -v
112112
113+
- name: test [macos]
114+
if: runner.os == 'macOS'
115+
run: |
116+
${{ steps.setup.outputs.python-path }} -m venv .venv
117+
source .venv/bin/activate
118+
python -m pip install --upgrade pip
119+
pip install -r ci/requirements.txt
120+
# Install the project in editable mode, which also installs its dependencies
121+
pip install -e .
122+
# Install test-specific dependencies
123+
pip install pytest pytest-cov
124+
# Run pytest directly, bypassing tox for the test execution step
125+
pytest --cov --cov-report=term-missing --cov-report=xml -vv tests
126+
113127
- name: test [windows]
114128
if: runner.os == 'Windows'
115129
shell: pwsh

0 commit comments

Comments
 (0)