Merge pull request #4974 from ministryofjustice/certificates_renewal_… #1843
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: ♻️ Tests | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
run-unit-tests: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Set up Python | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: "3.11" | |
cache: "pipenv" | |
- name: Install Pipenv | |
run: pip install pipenv | |
- name: Verify Pipfile.lock is in sync | |
run: pipenv verify | |
- name: Install dependencies | |
run: pipenv install --dev | |
- name: Run Unit Tests | |
run: pipenv run tests | |
- name: Show Coverage | |
run: pipenv run tests_report | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@ef609d6cb5624f374eed2390087f7ac0fc5f688a # v4.6.0 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} |