Skip to content

Commit 56a1ba3

Browse files
authored
Add base pythonpath for pytest (#2)
* Add base pythonpath for pytest * Add Junit reporting * For python 3.11
1 parent 44e04e3 commit 56a1ba3

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,21 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Set up Python 3.10
22+
- name: Set up Python 3.11
2323
uses: actions/setup-python@v3
2424
with:
25-
python-version: "3.10"
25+
python-version: "3.11"
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
2929
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3030
- name: Test with pytest
3131
run: |
3232
pytest -v --junitxml=pytest.xml -o junit_logging=all .
33+
- name: Test Report
34+
uses: dorny/test-reporter@v2
35+
if: ${{ !cancelled() }} # run this step even if previous step failed
36+
with:
37+
name: Pytest Tests
38+
path: pytest.xml
39+
reporter: java-junit

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
pythonpath = .

0 commit comments

Comments
 (0)