-
-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (31 loc) · 789 Bytes
/
ci.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
---
name: "Certgrinder CI Tests"
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0' # weekly
jobs:
build:
runs-on: "ubuntu-latest"
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: "actions/checkout@v2"
- name: "Install dependencies"
run: "sudo apt install -y git"
- name: "Setup Python"
uses: "actions/setup-python@v2"
with:
python-version: ${{ matrix.python }}
- name: "Install Tox and codecov"
run: "pip install tox codecov"
- name: "Run Tox"
run: "tox -e py"
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v2"
with:
fail_ci_if_error: false
token: "${{secrets.CODECOV_TOKEN}}"
...