Skip to content

Commit 15ed15a

Browse files
committed
chore: test uv github action
Signed-off-by: slowy07 <[email protected]>
1 parent a8bc29a commit 15ed15a

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

.github/workflows/pythonapp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
- name: Checkout Code
2121
uses: actions/checkout@v4
2222

23-
- name: Setting python versi 3.11
24-
uses: actions/setup-python@v4
23+
- name: Setting python versi 3.12
24+
uses: actions/setup-python@v5
2525
with:
26-
python-version: "3.11"
26+
python-version: "3.12"
2727

2828
- name: Cache pip dependecies
2929
uses: actions/cache@v4

.github/workflows/uv_test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Python Testing
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
# menjalankan testing dengan 3 os yaitu
10+
# linux (ubuntu), windows, dan macOS
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
matrix:
15+
os: [macos-latest, windows-latest, ubuntu-latest]
16+
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v4
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v5
23+
24+
- name: Setting python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version-file: ".python-version"
28+
29+
- name: run testing
30+
run: uv run flake8 .

0 commit comments

Comments
 (0)