Skip to content

Commit

Permalink
Update Makefile and workflow to run lint test with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed Oct 8, 2023
1 parent 4de3132 commit 7f6737c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- run: make devinstall
- run: make coveragetests

flake:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -40,7 +40,7 @@ jobs:
cache: pip
cache-dependency-path: 'requirements-dev.txt'
- run: pip install --upgrade --upgrade-strategy eager -r requirements-dev.txt
- run: make flaketest
- run: make linttest

ansible-lint:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ devinstall:
pip install -r provisioning/roles/publicdb/files/requirements-pip.txt

.PHONY: test
test: coveragetests flaketest doctest ansibletest
test: coveragetests linttest doctest ansibletest

.PHONY: unittests
unittests:
Expand All @@ -15,9 +15,9 @@ unittests:
coveragetests: unittests
coverage report

.PHONY: flaketest
flaketest:
flake8
.PHONY: linttest
linttest:
ruff check .

.PHONY: doctest
doctest:
Expand Down

0 comments on commit 7f6737c

Please sign in to comment.