Skip to content

Commit

Permalink
ci: setup github actions and ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
daawaan4U committed Sep 15, 2024
1 parent 57aa03f commit 7a603a2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/actions/setup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Setup
description: Setup repository
runs:
using: composite
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.8
cache: pip
- run: pip install -r requirements.txt
19 changes: 19 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check
on: [push, pull_request]

jobs:
ruff-check:
name: Ruff Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/setup
- run: ruff check

ruff-format:
name: Ruff Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/setup
- run: ruff format

0 comments on commit 7a603a2

Please sign in to comment.