Skip to content

Commit

Permalink
✅ Testing compatibility with multiple python versions (and actually f…
Browse files Browse the repository at this point in the history
…irst CI) (#40)

* ⭐ tox

* ⭐ tox

* ⭐ pyproject.toml

* ✅ submodule

* ✅ py.test

* ✅ test directory

* ⭐ support python3.5

* ⭐ support python3.6

* ⭐ support python3.5

* ⭐ support python3.5

* ⭐ support python3.4

* 🔥 python3.4

* add newline

* add newline

* 🎨 update actions to v2
  • Loading branch information
Hi-king authored Apr 9, 2021
1 parent 94b28f9 commit 5a0f3dc
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
tests:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 3
matrix:
platform: [ubuntu-latest]
python-version: [3.5, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build-system]

requires = ["setuptools"]
build-backend = 'setuptools.build_meta'
16 changes: 16 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[tox]
envlist = py35, py37, py38, py39
isolated_build = true

[testenv]
deps =
-r requirements.txt
pytest
commands = py.test test

[gh-actions]
python =
3.5: py35
3.7: py37
3.8: py38
3.9: py39

0 comments on commit 5a0f3dc

Please sign in to comment.