Skip to content

Commit a2ed91c

Browse files
committed
feat: execute behave tests in PRs
1 parent 3342535 commit a2ed91c

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ['3.13']
10+
python-version: ['3.10', '3.11', '3.12', '3.13']
1111
fail-fast: false
1212

1313
steps:
14-
- uses: actions/checkout@v3
15-
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v3
14+
- uses: actions/checkout@v6
15+
- name: Set up python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v6
1717
with:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Install dependencies
@@ -25,3 +25,22 @@ jobs:
2525
run: |
2626
ruff check .
2727
ruff format --check .
28+
- name: Run tests
29+
run: |
30+
behave --junit --junit-directory output/reports features/ -D Driver_headless=True
31+
continue-on-error: true
32+
- name: Upload output folder
33+
uses: actions/upload-artifact@v7
34+
if: always()
35+
with:
36+
name: behave-tests-output-${{ matrix.python-version }}
37+
path: output
38+
retention-days: 10
39+
- name: Publish test results
40+
uses: dorny/test-reporter@v3
41+
if: always()
42+
with:
43+
name: tests results (${{ matrix.python-version }})
44+
path: output/reports/*.xml
45+
reporter: java-junit
46+
fail-on-error: true

0 commit comments

Comments
 (0)