Skip to content

Commit

Permalink
Using scripts in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
minond committed Oct 13, 2024
1 parent 8de1449 commit ed439b6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
python-version: 3.11

- run: pip install pipenv
- run: pipenv install --dev

- run: pipenv run black src tests --check
- run: pipenv run pytest
- run: ./scripts/install
- run: ./scripts/lint --check
- run: ./scripts/test
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@

This is an example Flask application with automated tests, linters, and
deployments.

## Useful commands

- `./scripts/install`, install dependencies
- `./scripts/lint`, run code formatters and linters
- `./scripts/test`, run automated tests
3 changes: 3 additions & 0 deletions scripts/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

pipenv install --dev
3 changes: 3 additions & 0 deletions scripts/lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

pipenv run black src tests "$@"
3 changes: 3 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

pipenv run pytest

0 comments on commit ed439b6

Please sign in to comment.