Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python3.8 support to tests using tox-gh-actions #236

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,22 @@ on:
- cron: '0 6 * * 1'

jobs:
py36:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.8"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.6
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v2
with:
python-version: '3.6'
python-version: "${{ matrix.python-version }}"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox
pip install tox tox-gh-actions
- name: "Run tox for ${{ matrix.python-version }}"
run: |
tox
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
[tox]
envlist = py36,pep8,docs
envlist = py36,py38,pep8,docs
minversion = 1.6
skipsdist = True

[gh-actions]
python =
3.6: py36,pep8,docs
3.8: py38

[testenv]
usedevelop = True
deps =
Expand All @@ -12,7 +17,6 @@ commands =
nosetests -sv --with-xcoverage --cover-package=orquesta orquesta.tests

[testenv:pep8]
basepython = python3.6
deps =
-r{toxinidir}/requirements-test.txt
commands =
Expand All @@ -21,7 +25,6 @@ commands =
black orquesta bin setup.py -l 100 --check

[testenv:docs]
basepython = python3.6
deps =
-r{toxinidir}/requirements-docs.txt
commands =
Expand Down