-
-
Notifications
You must be signed in to change notification settings - Fork 690
37 lines (34 loc) · 891 Bytes
/
ruff.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: Ruff
on:
push:
pull_request:
branches: [main]
env:
WORKING_DIRECTORY: "."
RUFF_OUTPUT_FILENAME: "ruff.log"
CUSTOM_FLAGS: ""
CUSTOM_PACKAGES: "instructor examples tests"
jobs:
Ruff:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.9
- name: Install the project
run: uv sync --all-extras
- name: Run Continuous Integration Action
uses: astral-sh/ruff-action@v1
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ruff-log
path: ${{ env.WORKING_DIRECTORY }}/${{ env.RUFF_OUTPUT_FILENAME }}