Skip to content

Commit 3c7f65d

Browse files
author
Jussi Kukkonen
committed
GH Action: Add missing tox environments
Use the recently added GNUPG env variable to hide gpg.
1 parent 60f1e4f commit 3c7f65d

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,19 @@ jobs:
1313
os: [ubuntu-latest, macos-latest]
1414
toxenv: [py]
1515

16-
# TODO add special cases: purepy27, purepy38, py27-no-gpg, py38-no-gpg
16+
include:
17+
- python-version: 2.7
18+
os: ubuntu-latest
19+
toxenv: purepy27
20+
- python-version: 2.7
21+
os: ubuntu-latest
22+
toxenv: py27-no-gpg
23+
- python-version: 3.8
24+
os: ubuntu-latest
25+
toxenv: purepy38
26+
- python-version: 3.8
27+
os: ubuntu-latest
28+
toxenv: py38-no-gpg
1729

1830
runs-on: ${{ matrix.os }}
1931

tox.ini

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py36, py37, py38, py39 purepy27, purepy38
7+
envlist = py27, py36, py37, py38, py39, purepy27, purepy38, py27-no-gpg, py38-no-gpg
88
skipsdist = True
99

1010
[testenv]
@@ -34,12 +34,14 @@ deps =
3434
commands =
3535
python -m tests.check_public_interfaces
3636

37-
# Below test envs require manual removal of gpg on the host system (see
38-
# .travis.yml) and are excluded from the default tox run
3937
[testenv:py27-no-gpg]
38+
setenv =
39+
GNUPG = nonexisting-gpg-for-testing
4040
commands =
4141
python -m tests.check_public_interfaces_gpg
4242

4343
[testenv:py38-no-gpg]
44+
setenv =
45+
GNUPG = nonexisting-gpg-for-testing
4446
commands =
4547
python -m tests.check_public_interfaces_gpg

0 commit comments

Comments
 (0)