-
-
Notifications
You must be signed in to change notification settings - Fork 109
36 lines (28 loc) · 777 Bytes
/
uv_test.yml
File metadata and controls
36 lines (28 loc) · 777 Bytes
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
name: uv python test
on:
pull_request:
branches: [main]
jobs:
build:
# menjalankan testing dengan 3 os yaitu
# linux (ubuntu), windows, dan macOS
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Setting python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: install depedencies
run: uv add -r dev-requirements.txt
- name: run testing
run: |
uv add pre-commit
uv run pre-commit install
uv run pre-commit run --all-files