Skip to content

Commit affb6b2

Browse files
committed
Attempt to fix CI's for multiple Python environments.
1 parent ae24ba9 commit affb6b2

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

.circleci/config.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@
1515
version: 2.1
1616

1717
executors:
18+
python37:
19+
docker:
20+
- image: circleci/python:3.7
21+
python38:
22+
docker:
23+
- image: circleci/python:3.8
1824
python39:
1925
docker:
2026
- image: circleci/python:3.9
2127

2228
jobs:
2329
publish:
24-
executor: python39
30+
parameters:
31+
executor:
32+
type: executor
33+
default: python39
34+
executor: << parameters.executor >>
2535
environment:
2636
PIPENV_VENV_IN_PROJECT: true
2737
steps:
@@ -73,15 +83,12 @@ workflows:
7383
version: 2
7484
build_and_test_and_publish:
7585
jobs:
76-
- build
77-
# TODO: enable to publish after successful build
78-
# - publish:
79-
# filters:
80-
# branches:
81-
# only: main
82-
# context: pypi
83-
# requires:
84-
# - build
86+
- build:
87+
executor: python37
88+
- build:
89+
executor: python38
90+
- build:
91+
executor: python39
8592

8693
build_nightly:
8794
triggers:
@@ -91,4 +98,9 @@ workflows:
9198
branches:
9299
only: main
93100
jobs:
94-
- build
101+
- build:
102+
executor: python37
103+
- build:
104+
executor: python38
105+
- build:
106+
executor: python39

.github/workflows/poetry.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Ensure build successful
5757
run: poetry build
5858
- name: Run tox
59-
run: poetry run tox
59+
run: poetry run tox -e py${{ matrix.python-version }}
6060
- name: Generate coverage reports
6161
run: >
6262
poetry run coverage report &&

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion=3.9.0
3-
envlist = flake8,py39,py38,py37
3+
envlist = flake8,py3.9,py3.8,py3.7
44

55
[testenv]
66
deps =

0 commit comments

Comments
 (0)