Skip to content

Add GitHub Actions workflow for tox #527

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

Merged
merged 19 commits into from
May 19, 2021
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
2368f23
Add GitHub Actions package build workflow that invokes 'tox'
jayaddison Jan 10, 2021
19ade46
Checkout git submodules during build workflow
jayaddison Jan 10, 2021
e09d0ca
Add setup of all supported Python interpreters to GitHub Actions work…
jayaddison Jan 10, 2021
c77658d
Enable parallel tox builds, with spinner disabled
jayaddison Jan 10, 2021
e9cc226
Include Python2.7 + PyPy build environment
jayaddison Jan 10, 2021
12fed91
Enable stdout output from tox in parallel mode
jayaddison Jan 10, 2021
c217133
Prevent repository-internal pull requests from running duplicate tox …
jayaddison Jan 10, 2021
8dee9f0
Experiment: move Python environment list from tox into GitHub Actions…
jayaddison Jan 12, 2021
57a9c1a
Disable tox parallel run mode
jayaddison Jan 12, 2021
4ef39c4
Fixup: trailing list bracket
jayaddison Jan 12, 2021
808f7c6
Revert "Fixup: trailing list bracket"
jayaddison Jan 12, 2021
8040d95
Revert "Disable tox parallel run mode"
jayaddison Jan 12, 2021
86f80bc
Revert "Experiment: move Python environment list from tox into GitHub…
jayaddison Jan 12, 2021
e6ccea7
Duplicate Python environment list from tox in GitHub Actions matrix s…
jayaddison Jan 12, 2021
f18776c
Disable tox parallel run mode
jayaddison Jan 12, 2021
90139eb
Request a single Python environment (the current default Python inter…
jayaddison Jan 12, 2021
19cf7f7
Fixup: trailing list bracket
jayaddison Jan 12, 2021
92b4b90
Always print html5lib debug info at the end of GitHub Actions build
jayaddison Jan 19, 2021
753bc08
Merge branch 'master' into github-workflows/python-tox
jayaddison Apr 4, 2021
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
21 changes: 21 additions & 0 deletions .github/workflows/python-tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [pull_request, push]
jobs:
build:
# Prevent duplicate builds for 'internal' pull requests on existing commits
# Credit: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012
if: github.event.push || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
strategy:
matrix:
python: [2.7, 3.5, 3.6, 3.7, 3.8, pypy-2.7, pypy3]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB for review: do pypy-2.7 and pypy3 respectively correspond to pypy and pypy3 as previously listed in tox.ini?

steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: pip install tox
- run: tox -e py
- if: ${{ always() }}
run: python debug-info.py