-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.42 KB
/
test.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
35
36
37
38
39
40
41
42
43
44
45
46
name: Coverage
on:
push:
branches: [main]
pull_request:
permissions:
contents: write
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install just 📦
uses: extractions/setup-just@v2
- name: Install the latest version of uv 📦
uses: astral-sh/setup-uv@v3
- name: Install Python 📦
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies 📦
run: just install
- run: |
uv run dnsm update examples/simple.toml
env:
TENCENTCLOUD_SECRET_ID: ${{ secrets.TENCENTCLOUD_SECRET_ID }}
TENCENTCLOUD_SECRET_KEY: ${{ secrets.TENCENTCLOUD_SECRET_KEY }}
LEXICON_CLOUDFLARE_AUTH_TOKEN: ${{ secrets.LEXICON_CLOUDFLARE_AUTH_TOKEN }}
- name: Run tests and benchmarks ✅
uses: CodSpeedHQ/action@v3
env:
TENCENTCLOUD_SECRET_ID: ${{ secrets.TENCENTCLOUD_SECRET_ID }}
TENCENTCLOUD_SECRET_KEY: ${{ secrets.TENCENTCLOUD_SECRET_KEY }}
LEXICON_CLOUDFLARE_AUTH_TOKEN: ${{ secrets.LEXICON_CLOUDFLARE_AUTH_TOKEN }}
with:
run: just test
- name: Upload coverage reports to Codecov 🚀
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
flags: dns-manager
plugins: pycoverage,compress-pycoverage