Skip to content

Commit

Permalink
ci test codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
pudeIko committed Dec 30, 2024
1 parent 7bd9ce4 commit dd2d1ab
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/test_with_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,35 +62,27 @@ jobs:
--cov-config=.coveragerc piva/tests/dataloaders_test.py
- name: Test viewers - install prerequisites
if: >
${{ matrix.os == 'ubuntu-latest'
&& matrix.python-version == '3.10' }}
if: ${{matrix.os=='ubuntu-latest' && matrix.python-version=='3.10'}}
run: >
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0
libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0
libxcb-xfixes0 x11-utils
- name: Test viewers - configure
if: >
${{ matrix.os == 'ubuntu-latest'
&& matrix.python-version == '3.10' }}
if: ${{matrix.os=='ubuntu-latest' && matrix.python-version=='3.10'}}
run: >
/sbin/start-stop-daemon --start --quiet --pidfile
/tmp/custom_xvfb_99.pid --make-pidfile --background --exec
/usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
- name: Test viewers - run tests
if: >
${{ matrix.os == 'ubuntu-latest'
&& matrix.python-version == '3.10' }}
if: ${{matrix.os=='ubuntu-latest' && matrix.python-version=='3.10'}}
run: >
pytest --cov=$GITHUB_WORKSPACE --cov-append --cov-report=xml
--cov-config=.coveragerc piva/tests/viewers_test.py
- name: Upload coverage to Codecov
if: >
${{ matrix.os == 'ubuntu-latest'
&& matrix.python-version == '3.10' }}
if: ${{matrix.os=='ubuntu-latest' && matrix.python-version=='3.10'}}
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
Expand Down

0 comments on commit dd2d1ab

Please sign in to comment.