Skip to content

Commit d12a793

Browse files
committed
feat(release): fixed ci workflow
Signed-off-by: Ujjwal Kumar <[email protected]>
1 parent dfec0d9 commit d12a793

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
environment: ci
1414
strategy:
1515
matrix:
16-
python-version: ['3.8', '3.9', '3.10', '3.11']
16+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
1717

1818
steps:
1919
- uses: actions/checkout@v3
@@ -37,16 +37,18 @@ jobs:
3737
sudo npm install -g npm@latest || sudo npm install -g npm@9
3838
3939
- name: Install dependencies
40-
run: pip install 'tox<4'
40+
run: pip install 'tox<4' tox-gh-actions
4141

4242
- name: Run tests
43+
env:
44+
PYTHON_VERSION: ${{ matrix.python-version }}
4345
run: tox
4446

4547
- name: Install release dependencies
4648
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
4749
run: |
4850
pip install bump-my-version
49-
npm install -g --save-dev \
51+
sudo npm install -g --save-dev \
5052
@semantic-release/changelog \
5153
@semantic-release/exec \
5254
@semantic-release/git \

tox.ini

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
[tox]
22
envlist = py37-lint, py37, py38, py39
33

4+
[gh-actions]
5+
python =
6+
3.7: py37, py37-lint
7+
3.8: py38
8+
3.9: py39
9+
410
[testenv:py37-lint]
511
basepython = python3.7
612
deps = pylint
713
commands = pylint --rcfile=.pylintrc ibm-vpc test/unit
814

915
[testenv]
10-
passenv = TOXENV CI TRAVIS*
16+
passenv = TOXENV CI GITHUB_*
1117
commands =
1218
pytest -v test/unit
1319

1420
deps =
1521
-r{toxinidir}/requirements.txt
1622
-r{toxinidir}/requirements-dev.txt
1723
usedevelop = True
18-
exclude = .venv,.git,.tox,docs
24+
exclude = .venv,.git,.tox,docs

0 commit comments

Comments
 (0)