Skip to content

Commit

Permalink
feat(test): Add GH action to test all contribs #10
Browse files Browse the repository at this point in the history
Confirming if contributor completed a test run before a push to the
repository.

closes #10
  • Loading branch information
imAsparky committed Sep 1, 2021
1 parent d14487a commit 9f0787d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/test_contribution.yaml
@@ -0,0 +1,25 @@
on:
push:
branches: [main]

tags:
- dev-*

workflow_dispatch:

jobs:
publish_dev_build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: test with tox
run: tox
19 changes: 18 additions & 1 deletion tox.ini
@@ -1,9 +1,12 @@

[tox]
envlist = py36, py37,py38, py39, py3.10 pypy, docs
envlist = py36, py37,py38 pypy, py39, docs
skipsdist = true
skip_missing_interpreters = true

[travis]
python =
3.9: py39
3.8: py38
3.7: py37
3.6: py36
Expand All @@ -15,6 +18,20 @@ deps=sphinx
commands=
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[gh-actions]
python =
3.9: py39
3.8: py38
3.7: py37
3.6: py36

[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows


[testenv]
setenv =
PYTHONPATH = {toxinidir}
Expand Down

0 comments on commit 9f0787d

Please sign in to comment.