-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 876 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
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Setup Git
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions"
- name: Checkout
uses: actions/checkout@v3
- name: Setup Rye
uses: eifinger/setup-rye@v1
with:
enable-cache: true
- name: Pin Python Version
run: rye pin ${{ matrix.python-version }}
- name: Sync Rye
run: rye sync
- name: Run Tests
run: rye run pytest