Skip to content

Commit

Permalink
Run workflow steps in parallel where possible (#63)
Browse files Browse the repository at this point in the history
* added deptry to precommit and made workflows parralel instead of sequential
  • Loading branch information
fpgmaas authored Oct 23, 2022
1 parent 0cd6cd6 commit 3e197b9
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 72 deletions.
1 change: 0 additions & 1 deletion .github/workflows/on-merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
tox:
runs-on: ubuntu-latest
needs: quality
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
tox:
runs-on: ubuntu-latest
needs: quality
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/on-release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
tox:
runs-on: ubuntu-latest
needs: quality
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
Expand All @@ -47,7 +46,9 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: tox
needs:
- quality
- tox
steps:

- name: Check out
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ repos:
rev: "5.0.4"
hooks:
- id: flake8

- repo: https://github.com/fpgmaas/deptry.git
rev: f80c2263a201b868c469e7cb419a5e9b363dcbf8
rev: d29525669a80068a8a53ac1f2d5c94321111a87d
hooks:
- id: deptry

- id: deptry
103 changes: 43 additions & 60 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pytest-cookies = "^0.6.1"
tox = "^3.25.1"
mkdocs = "^1.3.0"
mkdocs-material = "^8.3.8"
deptry = "^0.5.9"
deptry = "^0.6.2"
mypy = "^0.981"

[build-system]
Expand Down
Binary file modified static/images/pipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:

tox:
runs-on: ubuntu-latest
needs: quality
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:

tox:
runs-on: ubuntu-latest
needs: quality
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
{%- endif %}

tox:
needs: quality
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -53,7 +52,9 @@ jobs:

publish:
runs-on: ubuntu-latest
needs: tox
needs:
- quality
- tox
steps:

- name: Check out
Expand Down

0 comments on commit 3e197b9

Please sign in to comment.