Skip to content

Commit

Permalink
Fixed GHA boolean logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Mar 9, 2024
1 parent f8b0838 commit a5fce32
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,30 @@ jobs:
- run: pip install --user . montepy[test]
- run: coverage run -m pytest --junitxml=test_report.xml
- run: coverage report
if: ${{ success() }} || ${{ failure() }}
if: ${{ success() || failure() }}
- run: coverage xml
if: ${{ success() }} || ${{ failure() }}
if: ${{ success() || failure() }}
- name: Upload test report
if: ${{ matrix.python-version == '3.9' }} && (${{ success() }} || ${{ failure() }})
if: ${{ matrix.python-version == '3.9' && (success() || failure() )}}
uses: actions/upload-artifact@v4
with:
name: test
path: test_report.xml
- name: Upload coverage report
if: ${{ matrix.python-version == '3.9' }} && (${{ success() }} || ${{ failure() }})
if: ${{ matrix.python-version == '3.9' && (success() || failure() )}}
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.xml
- name: Test Reporter
if: ${{ matrix.python-version == '3.9' }} && (${{ success() }} || ${{ failure() }})
if: ${{ matrix.python-version == '3.9' && (success() || failure() )}}
uses: dorny/test-reporter@v1.7.0
with:
name: CI-test-report
path: test_report.xml
reporter: java-junit
- name: Coveralls GitHub Action
if: ${{ matrix.python-version == '3.9' }} && (${{ success() }} || ${{ failure() }})
if: ${{ matrix.python-version == '3.9' && (success() || failure() )}}
uses: coverallsapp/github-action@v2.2.3
with:
file: coverage.xml
Expand Down

0 comments on commit a5fce32

Please sign in to comment.