Update codecov/codecov-action action to v5.0.4 #1205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: test | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install -y python3-dev python3-setuptools openvswitch-switch wget && \ | |
pip3 install -U pip && \ | |
pip3 install -U -r test-requirements.txt && \ | |
export PATH=/home/runner/.local/bin:$PATH | |
pylint -E *py && \ | |
pytype *py && \ | |
./test_ovs_pipette.sh && \ | |
PYTHONPATH=. coverage run test_pipette.py && \ | |
coverage report pipette.py && \ | |
coverage xml pipette.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5.0.4 | |
if: github.repository == 'iqtlabs/pipette' | |
- name: docker-test | |
run: | | |
docker compose build |