Skip to content

Commit

Permalink
Merge pull request #3 from vyperlang/feat-py39
Browse files Browse the repository at this point in the history
Python 3.9 support
  • Loading branch information
iamdefinitelyahuman authored Oct 7, 2020
2 parents 7a71979 + c127191 commit dc170f2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 18 deletions.
52 changes: 36 additions & 16 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup Python 3.8
uses: actions/setup-python@v1
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Install Tox
run: pip install tox wheel

- name: Run Tox
run: tox -e lint


py36:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup Python 3.6
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.6

Expand All @@ -48,15 +47,14 @@ jobs:
file: ./coverage.xml
fail_ci_if_error: true


py37:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup Python 3.7
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.7

Expand All @@ -72,27 +70,49 @@ jobs:
file: ./coverage.xml
fail_ci_if_error: true


py38:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install Tox
run: pip install tox wheel

- name: Run Tox
run: tox -e py38

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true

py39:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup Python 3.8
uses: actions/setup-python@v1
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Install Tox
run: pip install tox wheel

- name: Run Tox
run: tox -e py38
run: tox -e py39

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tox]
envlist =
lint
py{36,37,38}
py{36,37,38,39}

[testenv]
passenv =
GITHUB_TOKEN
deps = -r{toxinidir}/requirements-dev.txt
commands =
py{36,37,38}: python -m pytest tests/
py{36,37,38,39}: python -m pytest tests/

[testenv:lint]
extras=linter
Expand Down

0 comments on commit dc170f2

Please sign in to comment.