-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (45 loc) · 1.21 KB
/
coverage-build.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build Coverage
on:
pull_request:
branches:
- main
jobs:
build-providers:
uses: ./.github/workflows/build-providers.yaml
coverage-build:
runs-on: ubuntu-latest
needs: build-providers
env:
UV_SYSTEM_PYTHON: true
steps:
- uses: actions/checkout@v4
- uses: actions/cache/restore@v4
id: cache
with:
path: build/
key: cally-test-providers
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- uses: yezz123/setup-uv@v4
- uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Export Terraform Path
run: echo "CALLY_TERRAFORM_PATH=$(which terraform)" >> $GITHUB_ENV
- name: Install Provider Pacakges
run: uv pip install build/**/*.tar.gz
- name: Install Cally test dependencies
run: uv pip install .[test]
- name: Run Coverage
run: |
coverage run -m pytest
coverage xml
- name: Upload Coverage
uses: actions/upload-artifact@v4
with:
name: coverage.xml
path: coverage.xml
retention-days: 1