7th commit #5
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: PR Coverage Diff - CI | ||
on: | ||
pull_request: | ||
jobs: | ||
run-tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-versions: | ||
- "3.11" | ||
name: Test Job | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: Checkout PR branch | ||
uses: actions/checkout@v4 | ||
- name: Set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{matrix.python-versions}} | ||
- name: Install dependencies | ||
run: pip install pytest pytest-cov | ||
- name: Run tests | ||
run: pytest --cov | ||
- name: Upload results to Codecov | ||
run: | | ||
# Replace `linux` below with the appropriate OS | ||
# Options are `alpine`, `linux`, `macos`, `windows` | ||
curl -Os https://cli.codecov.io/latest/linux/codecov | ||
chmod +x codecov | ||
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml |