Skip to content

Commit

Permalink
Add Github workflows for test, lint, and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wiseodd committed Jul 4, 2024
1 parent 463121f commit 13674f2
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/format-ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: ruff-format

on: pull_request

jobs:
ruff-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: "format --check"
12 changes: 12 additions & 0 deletions .github/workflows/lint-ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: ruff-lint

on: pull_request

jobs:
ruff-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: 'check'
19 changes: 19 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: pytest

on: pull_request

jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
pdm sync -d
- name: Test with pytest
run: |
pdm run -v pytest tests
2 changes: 1 addition & 1 deletion .pdm-python
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/Users/akristiadi/.pyenv/shims/python3
/Users/agustinuskristiadi/Projects/ults/.venv/bin/python

0 comments on commit 13674f2

Please sign in to comment.