forked from allure-framework/allure-python
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.2 KB
/
build.yaml
File metadata and controls
44 lines (36 loc) · 1.2 KB
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
name: build allure python
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
package: [
allure-python-commons-test,
allure-python-commons,
allure-nose2,
allure-behave,
allure-pytest,
allure-pytest-bdd,
allure-robotframework
]
python-version: [3.6, 3.7, 3.8, 3.9]
include:
- python-version: 3.9
static-check: yes
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Static check ${{ matrix.package }}
if: matrix.static-check
run: tox -e static-check -c ${{ matrix.package }}/tox.ini
- name: Prepare commons
if: "!startsWith(matrix.package, 'allure-python-commons')"
run: tox --sdistonly -c ./allure-python-commons && tox --sdistonly -c ./allure-python-commons-test
- name: Test ${{ matrix.package }}
run: tox -e py`echo ${{ matrix.python-version }} | sed 's/\.//g'` -c ${{ matrix.package }}/tox.ini