-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (33 loc) · 1.04 KB
/
cicd-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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}}