Prep v1.6.0 (#132) #15
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
# Github Action definition for running tox across the supported python | |
# versions. Intended to be triggered on push to master and on filing | |
# of a pull_request, when those pushes hit something that impacts the | |
# running of the tests. | |
name: Tox | |
on: | |
push: | |
branches: | |
- master | |
ignore-paths: | |
- 'docs/**' | |
paths: | |
- 'setup.*' | |
- '**/*.py' | |
- '**/*.tmpl' | |
- 'tests/**' | |
pull_request: | |
ignore-paths: | |
- 'docs/**' | |
paths: | |
- 'setup.*' | |
- '**/*.py' | |
- '**/*.tmpl' | |
- 'tests/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- '2.7' | |
- '3.7' | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
if: ${{ matrix.python-version != '2.7' }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Python ${{ matrix.python-version }} | |
if: ${{ matrix.python-version == '2.7' }} | |
run: | | |
sudo apt-get install -y python2 | |
- name: Install system packages | |
run: | | |
sudo apt-get install -y libssl-dev openssl swig | |
- name: Install python dependencies | |
run: | | |
pip install tox tox-gh-actions wheel | |
- name: Running tox | |
run: tox | |
# The end. |