-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 853 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
38
39
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
rye-build:
runs-on: ubuntu-latest
steps:
# 1. Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# 2. Install Rye using the pre-built action
- name: Install Rye
uses: sbarrios93/rye-rust-action@v1
id: rye-installer
# 3. Show the installed Rye version
- name: Show Rye version
run: |
echo "Installed Rye commit hash: ${{ steps.rye-installer.outputs.rye_commit_hash }}"
rye --version
# 4. Sync dependencies with Rye
- name: Sync dependencies
run: |
rye sync
# 5. Run tests (add this if you want to run tests after syncing)
- name: Run tests
run: |
rye run pytest