Skip to content

Bump actions/checkout from 4 to 6 #80

Bump actions/checkout from 4 to 6

Bump actions/checkout from 4 to 6 #80

Workflow file for this run

name: Run Pytest and Codecov with Hatch
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build Docker image
run: docker build --target hatch -t myapp:hatch .
- name: Run pytest and generate coverage report
run: docker run --rm -e HATCH_ENV=test -v "${{ github.workspace }}:/app" myapp:hatch cov
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: ${{ github.workspace }}/coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}