-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 852 Bytes
/
ci.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
name: CI
on:
push:
branches:
- 'main'
pull_request:
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'poetry'
- name: Install Task
uses: arduino/setup-task@v1
- name: Install packages
run: |
task python:install
- name: Linting
run: |
task python:lint
- name: Unit tests
run: |
task python:test-cov
env:
RUBRICAL_TEST_GITHUB_ACCESS_TOKEN: ${{ secrets.RUBRICAL_TEST_GITHUB_ACCESS_TOKEN }}
- name: Doc tests
run: task docs:test
- uses: codecov/codecov-action@v5
with:
files: test_results/cov.xml