Skip to content

Commit

Permalink
fix: separate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristinaMoore committed Dec 8, 2023
1 parent 182c30a commit 076175f
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/hello_world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Flake Eight
on: [push]

jobs:
install-deps:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -14,24 +14,27 @@ jobs:
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install flake8
run: pip install flake8

linting:
runs-on: ubuntu-latest
needs: install-deps
steps:
- name: Run flake8
run: flake8 src/ tests/

tests:
runs-on: ubuntu-latest
needs: install-deps
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run tests
run: pytest tests/

0 comments on commit 076175f

Please sign in to comment.