Skip to content

Commit

Permalink
add pytest ini
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Jul 22, 2024
1 parent 0ec0753 commit 9b025c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
# Adapt the following code
- name: Test with pytest
run: |
pytest --cov antarest --cov-report xml
pytest --cov tests --cov-report xml
- name: Fix code coverage paths
if: matrix.os == 'ubuntu-20.04'
# Not sure what the `sed` is supposed to do
run: |
sed -i 's/\/home\/runner\/work\/AntaREST\/AntaREST/\/github\/workspace/g' coverage.xml
sed -i 's/\/home\/runner\/work\/antares-study-version\/antares-study-version/\/github\/workspace/g' coverage.xml
- name: Archive code coverage results
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v4
Expand Down
5 changes: 5 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[pytest]
pythonpath = src
testpaths = tests
log_cli = true
junit_family=xunit2

0 comments on commit 9b025c2

Please sign in to comment.