Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3065960

Browse filesBrowse files
committed
Reworked other frameworks
Fix linter issues Removed tox
1 parent 00bd424 commit 3065960
Copy full SHA for 3065960

30 files changed

+627-319Lines changed: 627 additions & 319 deletions
Expand file treeCollapse file tree
Open diff view settings
File renamed without changes.
Collapse file
+96Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: build and test allure-behave
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths:
8+
- "allure-behave/**"
9+
- "allure-python-commons/**"
10+
- "allure-python-commons-test/**"
11+
12+
env:
13+
PROJECT_NAME: allure-behave
14+
15+
jobs:
16+
commons:
17+
name: Build commons
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Cache commons
23+
id: commons
24+
uses: actions/cache@v3
25+
with:
26+
path: dist/
27+
key: commons-${{ github.sha }}
28+
29+
- name: Build python commons
30+
if: steps.commons.outputs.cache-hit != 'true'
31+
run: pip install build &&
32+
python -m build allure-python-commons --outdir dist/ &&
33+
python -m build allure-python-commons-test --outdir dist/
34+
35+
linters:
36+
name: Static check
37+
runs-on: ubuntu-latest
38+
needs: [commons]
39+
steps:
40+
- uses: actions/checkout@v3
41+
42+
- name: Set up Python
43+
uses: actions/setup-python@v4
44+
with:
45+
python-version: "3.10"
46+
47+
- name: Get commons from cache
48+
id: commons
49+
uses: actions/cache@v3
50+
with:
51+
path: dist/
52+
key: commons-${{ github.sha }}
53+
54+
- name: Install packages
55+
run: pip install dist/allure-python-commons*.tar.gz &&
56+
pip install ./${{ env.PROJECT_NAME }} &&
57+
pip install -r ${{ env.PROJECT_NAME }}/requirements.txt
58+
59+
- name: Static check ${{ env.PROJECT_NAME }}
60+
run: flake8 ${{ env.PROJECT_NAME }}/src/
61+
62+
build:
63+
name: Build and test package
64+
runs-on: ubuntu-latest
65+
needs: [linters, commons]
66+
strategy:
67+
matrix:
68+
python-version: ["3.10", 3.9, 3.8, 3.7]
69+
env:
70+
TEST_TMP: /tmp
71+
ALLURE_INDENT_OUTPUT: yep
72+
steps:
73+
- uses: actions/checkout@v3
74+
75+
- name: Set up Python ${{ matrix.python-version }}
76+
uses: actions/setup-python@v4
77+
with:
78+
python-version: ${{ matrix.python-version }}
79+
80+
- name: Get commons from cache
81+
id: commons
82+
uses: actions/cache@v3
83+
with:
84+
path: dist/
85+
key: commons-${{ github.sha }}
86+
87+
- name: Install packages
88+
run: pip install dist/allure-python-commons*.tar.gz &&
89+
pip install ./${{ env.PROJECT_NAME }} &&
90+
pip install -r ${{ env.PROJECT_NAME }}/requirements.txt
91+
92+
- name: Test ${{ env.PROJECT_NAME }}
93+
working-directory: ${{ env.PROJECT_NAME }}
94+
run: behave -f allure_behave.formatter:AllureFormatter -o allure-results
95+
-f pretty ./features
96+
Collapse file
+94Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: build and test allure-nose2
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths:
8+
- "allure-nose2/**"
9+
- "allure-python-commons/**"
10+
- "allure-python-commons-test/**"
11+
12+
env:
13+
PROJECT_NAME: allure-nose2
14+
15+
jobs:
16+
commons:
17+
name: Build commons
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Cache commons
23+
id: commons
24+
uses: actions/cache@v3
25+
with:
26+
path: dist/
27+
key: commons-${{ github.sha }}
28+
29+
- name: Build python commons
30+
if: steps.commons.outputs.cache-hit != 'true'
31+
run: pip install build &&
32+
python -m build allure-python-commons --outdir dist/ &&
33+
python -m build allure-python-commons-test --outdir dist/
34+
35+
linters:
36+
name: Static check
37+
runs-on: ubuntu-latest
38+
needs: [commons]
39+
steps:
40+
- uses: actions/checkout@v3
41+
42+
- name: Set up Python
43+
uses: actions/setup-python@v4
44+
with:
45+
python-version: "3.10"
46+
47+
- name: Get commons from cache
48+
id: commons
49+
uses: actions/cache@v3
50+
with:
51+
path: dist/
52+
key: commons-${{ github.sha }}
53+
54+
- name: Install packages
55+
run: pip install dist/allure-python-commons*.tar.gz &&
56+
pip install ./${{ env.PROJECT_NAME }} &&
57+
pip install -r ${{ env.PROJECT_NAME }}/requirements.txt
58+
59+
- name: Static check ${{ env.PROJECT_NAME }}
60+
run: flake8 ${{ env.PROJECT_NAME }}/src/ ${{ env.PROJECT_NAME }}/test/
61+
62+
build:
63+
name: Build and test package
64+
runs-on: ubuntu-latest
65+
needs: [linters, commons]
66+
strategy:
67+
matrix:
68+
python-version: ["3.10", 3.9, 3.8, 3.7]
69+
env:
70+
ALLURE_INDENT_OUTPUT: yep
71+
steps:
72+
- uses: actions/checkout@v3
73+
74+
- name: Set up Python ${{ matrix.python-version }}
75+
uses: actions/setup-python@v4
76+
with:
77+
python-version: ${{ matrix.python-version }}
78+
79+
- name: Get commons from cache
80+
id: commons
81+
uses: actions/cache@v3
82+
with:
83+
path: dist/
84+
key: commons-${{ github.sha }}
85+
86+
- name: Install packages
87+
run: pip install dist/allure-python-commons*.tar.gz &&
88+
pip install ./${{ env.PROJECT_NAME }} &&
89+
pip install -r ${{ env.PROJECT_NAME }}/requirements.txt
90+
91+
- name: Test ${{ env.PROJECT_NAME }}
92+
working-directory: ${{ env.PROJECT_NAME }}
93+
run: nose2 --plugin=test.example_loader --plugin=allure_nose2.plugin --allure
94+
--current-example -t . -s ./test
Collapse file
+93Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: build and test allure-pytest-bdd
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths:
8+
- "allure-pytest-bdd/**"
9+
- "allure-python-commons/**"
10+
- "allure-python-commons-test/**"
11+
12+
env:
13+
PROJECT_NAME: allure-pytest-bdd
14+
15+
jobs:
16+
commons:
17+
name: Build commons
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Cache commons
23+
id: commons
24+
uses: actions/cache@v3
25+
with:
26+
path: dist/
27+
key: commons-${{ github.sha }}
28+
29+
- name: Build python commons
30+
if: steps.commons.outputs.cache-hit != 'true'
31+
run: pip install build &&
32+
python -m build allure-python-commons --outdir dist/ &&
33+
python -m build allure-python-commons-test --outdir dist/
34+
35+
linters:
36+
name: Static check
37+
runs-on: ubuntu-latest
38+
needs: [commons]
39+
steps:
40+
- uses: actions/checkout@v3
41+
42+
- name: Set up Python
43+
uses: actions/setup-python@v4
44+
with:
45+
python-version: "3.10"
46+
47+
- name: Get commons from cache
48+
id: commons
49+
uses: actions/cache@v3
50+
with:
51+
path: dist/
52+
key: commons-${{ github.sha }}
53+
54+
- name: Install packages
55+
run: pip install dist/allure-python-commons*.tar.gz &&
56+
pip install ./${{ env.PROJECT_NAME }} &&
57+
pip install -r ${{ env.PROJECT_NAME }}/requirements.txt
58+
59+
- name: Static check ${{ env.PROJECT_NAME }}
60+
run: flake8 ${{ env.PROJECT_NAME }}/src/ ${{ env.PROJECT_NAME }}/test/
61+
62+
build:
63+
name: Build and test package
64+
runs-on: ubuntu-latest
65+
needs: [linters, commons]
66+
strategy:
67+
matrix:
68+
python-version: ["3.10", 3.9, 3.8, 3.7]
69+
env:
70+
ALLURE_INDENT_OUTPUT: yep
71+
steps:
72+
- uses: actions/checkout@v3
73+
74+
- name: Set up Python ${{ matrix.python-version }}
75+
uses: actions/setup-python@v4
76+
with:
77+
python-version: ${{ matrix.python-version }}
78+
79+
- name: Get commons from cache
80+
id: commons
81+
uses: actions/cache@v3
82+
with:
83+
path: dist/
84+
key: commons-${{ github.sha }}
85+
86+
- name: Install packages
87+
run: pip install dist/allure-python-commons*.tar.gz &&
88+
pip install ./${{ env.PROJECT_NAME }} &&
89+
pip install -r ${{ env.PROJECT_NAME }}/requirements.txt
90+
91+
- name: Test ${{ env.PROJECT_NAME }}
92+
working-directory: ${{ env.PROJECT_NAME }}
93+
run: pytest --alluredir=allure-results --basetemp=tmp test
Collapse file
+15-13Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- "allure-python-commons/**"
1010
- "allure-python-commons-test/**"
1111

12+
env:
13+
PROJECT_NAME: allure-pytest
14+
1215
jobs:
1316
commons:
1417
name: Build commons
@@ -21,7 +24,7 @@ jobs:
2124
uses: actions/cache@v3
2225
with:
2326
path: dist/
24-
key: commons-${{ hashFiles('allure-python-commons/**', 'allure-python-commons-test/**') }}
27+
key: commons-${{ github.sha }}
2528

2629
- name: Build python commons
2730
if: steps.commons.outputs.cache-hit != 'true'
@@ -46,19 +49,18 @@ jobs:
4649
uses: actions/cache@v3
4750
with:
4851
path: dist/
49-
key: commons-${{ hashFiles('allure-python-commons/**', 'allure-python-commons-test/**') }}
52+
key: commons-${{ github.sha }}
5053

5154
- name: Install packages
5255
run: pip install dist/allure-python-commons*.tar.gz &&
53-
pip install ./allure-pytest &&
54-
pip install -r allure-pytest/requirements.txt
56+
pip install ./${{ env.PROJECT_NAME }} &&
57+
pip install -r ${{ env.PROJECT_NAME }}/requirements.txt
5558

56-
- name: Static check allure-pytest
57-
working-directory: allure-pytest
58-
run: flake8 src/ test/
59+
- name: Static check ${{ env.PROJECT_NAME }}
60+
run: flake8 ${{ env.PROJECT_NAME }}/src/ ${{ env.PROJECT_NAME }}/test/
5961

6062
build:
61-
name: Test allure-pytest
63+
name: Build and test package
6264
runs-on: ubuntu-latest
6365
needs: [linters, commons]
6466
strategy:
@@ -79,14 +81,14 @@ jobs:
7981
uses: actions/cache@v3
8082
with:
8183
path: dist/
82-
key: commons-${{ hashFiles('allure-python-commons/**', 'allure-python-commons-test/**') }}
84+
key: commons-${{ github.sha }}
8385

8486
- name: Install packages
8587
run: pip install dist/allure-python-commons*.tar.gz &&
86-
pip install ./allure-pytest &&
87-
pip install -r allure-pytest/requirements.txt
88+
pip install ./${{ env.PROJECT_NAME }} &&
89+
pip install -r ${{ env.PROJECT_NAME }}/requirements.txt
8890

89-
- name: Test allure-python
90-
working-directory: allure-pytest
91+
- name: Test ${{ env.PROJECT_NAME }}
92+
working-directory: ${{ env.PROJECT_NAME }}
9193
run: pytest --alluredir=allure-results --basetemp=tmp
9294
test/acceptance test/integration

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.