Skip to content

Commit

Permalink
chore: update and rename workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy1866 committed Sep 11, 2024
1 parent f8067f7 commit 19dafe3
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/test.yml → .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Test
name: Lint and Test

on:
push:
branches:
- "**"
- "main"
pull_request:

jobs:
pytest:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -16,5 +17,17 @@ jobs:
python-version: "3.12"
- name: install dependencies
run: pip install -r requirements-dev.txt

lint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: run linter
run: black src

pytest:
runs-on: ubuntu-latest
needs: setup
steps:
- name: run tests
run: pytest

0 comments on commit 19dafe3

Please sign in to comment.