forked from OpenKMIP/PyKMIP
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·52 lines (50 loc) · 1.59 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
name: tox
on:
push:
branches: [ master ]
pull_request:
jobs:
tox-test:
strategy:
matrix:
os: [ubuntu-latest]
python:
- {version: '3.8', env: py38}
- {version: '3.9', env: py39}
- {version: '3.10', env: py310}
- {version: '3.11', env: py311}
- {version: '3.12', env: py312}
test_mode: [0, 1]
runs-on: ${{ matrix.os }}
env:
TOXENV: ${{ matrix.python.env }}
RUN_INTEGRATION_TESTS: ${{ matrix.test_mode }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python.version }}
- run: pip install tox
- run: pip install codecov
- run: pip install slugs
- run: python3 setup.py install
- run: ./.travis/run.sh
- run: codecov
tox-other:
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
test: [pep8, bandit, docs]
runs-on: ${{ matrix.os }}
env:
TOXENV: ${{ matrix.test }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- run: pip install tox
- run: pip install bandit
if: ${{ matrix.test == 'bandit' }}
- run: tox