Skip to content

Commit

Permalink
Added Github workflow configs
Browse files Browse the repository at this point in the history
  • Loading branch information
d31003 committed Feb 8, 2024
1 parent 59bdb57 commit ab398e0
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Ruff
on: [push, pull_request]

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- uses: chartboost/ruff-action@v1
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'style fixes by ruff'
19 changes: 19 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Python Unit Tests
on: [push, pull_request]

jobs:
unit-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -e ."[dev, test]"
- name: Run Unit Tests
run: |
python -m unittest discover
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,8 @@ dmypy.json
*.jpg
*.jpeg
*.png

# don't ignore github workflow
!/.github/
!/.github/workflows/
!/.github/workflows/*.yml

0 comments on commit ab398e0

Please sign in to comment.