-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 903 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
34
35
36
37
name: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
ci:
strategy:
matrix:
python-version: ["3.10", "3.11"]
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install rye
run: |
curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash
$HOME/.rye/shims/rye pin ${{ matrix.python-version }}
$HOME/.rye/shims/rye sync
- name: Lint
run: $HOME/.rye/shims/rye run lint
- name: Test
run: $HOME/.rye/shims/rye run test
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}