-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅ Testing compatibility with multiple python versions (and actually f…
…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
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[build-system] | ||
|
||
requires = ["setuptools"] | ||
build-backend = 'setuptools.build_meta' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |