Skip to content

Commit

Permalink
ci: separate formatting from unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemwood committed Aug 23, 2023
1 parent dac96ac commit c438b82
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,21 @@ name: tests
on: [push, pull_request]

jobs:
build:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- uses: psf/black@stable
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

build:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -22,12 +35,6 @@ jobs:
version: 1.2.2
- name: Install dependencies
run: poetry install
- uses: psf/black@stable
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
poetry run pytest

0 comments on commit c438b82

Please sign in to comment.