-
Notifications
You must be signed in to change notification settings - Fork 31
73 lines (57 loc) · 1.41 KB
/
tox.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# 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.