Skip to content

Commit

Permalink
Using scripts in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
minond authored Oct 13, 2024
1 parent 6120684 commit 3079a9b
Show file tree
Hide file tree
Showing 5 changed files with 22 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
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Sample CI/CD Python project

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 3079a9b

Please sign in to comment.