Skip to content

Commit

Permalink
chore: test uv github action
Browse files Browse the repository at this point in the history
Signed-off-by: slowy07 <[email protected]>
  • Loading branch information
slowy07 committed Mar 4, 2025
1 parent a8bc29a commit 15ed15a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setting python versi 3.11
uses: actions/setup-python@v4
- name: Setting python versi 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Cache pip dependecies
uses: actions/cache@v4
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/uv_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Python Testing

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: run testing
run: uv run flake8 .

0 comments on commit 15ed15a

Please sign in to comment.