Skip to content

Commit

Permalink
ci: use makefile whenever in github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
oedokumaci committed May 2, 2023
1 parent 04ee670 commit d94a2d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,8 @@ jobs:
with:
python-version: "3.9"

- name: Make __pypackages__ directory
run: mkdir __pypackages__

- name: Install dependencies
run: pdm install

- name: Install pre-commit hooks
run: pdm run pre-commit install
- name: Install dependencies and pre-commit hooks
run: make setup

- name: Run black
run: pdm run pre-commit run --all-files black
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Make __pypackages__ directory
run: mkdir __pypackages__
- name: Install dependencies and pre-commit hooks
run: make setup

- name: Install dependencies
run: pdm install

- name: Run pytest-check
run: pdm run pre-commit run pytest-check -v
- name: Run tests
run: make test

0 comments on commit d94a2d3

Please sign in to comment.