Skip to content

Commit 1b942a0

Browse files
committed
Change env using normal syntax
1 parent 49fbd9f commit 1b942a0

File tree

1 file changed

+26
-19
lines changed

1 file changed

+26
-19
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
name: [
30-
"windows-py35",
31-
"windows-py36",
32-
"windows-py37",
33-
"windows-py37-pluggy",
34-
"windows-py38",
35-
36-
"ubuntu-py35",
37-
"ubuntu-py36",
38-
"ubuntu-py37",
39-
"ubuntu-py37-pluggy",
40-
"ubuntu-py37-freeze",
30+
# "windows-py35",
31+
# "windows-py36",
32+
# "windows-py37",
33+
# "windows-py37-pluggy",
34+
# "windows-py38",
35+
#
36+
# "ubuntu-py35",
37+
# "ubuntu-py36",
38+
# "ubuntu-py37",
39+
# "ubuntu-py37-pluggy",
40+
# "ubuntu-py37-freeze",
4141
"ubuntu-py38",
4242
"ubuntu-pypy3",
4343

44-
"macos-py37",
45-
"macos-py38",
46-
47-
"linting",
44+
# "macos-py37",
45+
# "macos-py38",
46+
#
47+
# "linting",
4848
]
4949

5050
include:
@@ -126,12 +126,19 @@ jobs:
126126
run: |
127127
python -m pip install --upgrade pip
128128
pip install tox coverage
129+
130+
- name: Test (no coverage)
131+
if: "matrix.skip_coverage"
132+
env:
133+
_PYTEST_TOX_COVERAGE_RUN: ""
134+
run: |
135+
echo "_PYTEST_TOX_COVERAGE_RUN = $_PYTEST_TOX_COVERAGE_RUN"
136+
tox -e ${{ matrix.tox_env }}
137+
129138
- name: Test
130-
shell: bash
139+
if: "! matrix.skip_coverage"
131140
run: |
132-
if [[ "${{ matrix.skip_coverage }}" = "true" ]]; then
133-
export _PYTEST_TOX_COVERAGE_RUN=
134-
fi
141+
echo "_PYTEST_TOX_COVERAGE_RUN = $_PYTEST_TOX_COVERAGE_RUN"
135142
tox -e ${{ matrix.tox_env }}
136143
137144
- name: Prepare coverage token

0 commit comments

Comments
 (0)