-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Appsilon/add-bandit-more-ruff
feat: more ruff rules and bandit
- Loading branch information
Showing
6 changed files
with
97 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
name: 'Test App E2E' | ||
on: # rebuild any PRs and main branch changes | ||
name: 'Test PyShiny App' | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build and run dev container tests | ||
uses: devcontainers/ci@v0.3 | ||
with: | ||
runCmd: poetry run pytest | ||
runCmd: ./run_tests_and_bandit.sh |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# This script is for Github Action purposes. | ||
# You cannot run multiple commands with runCmd in devcontainers/ci@v0.3 action | ||
# Hence, this script is created to run the tests and bandit. | ||
|
||
set -e # Exit immediately if a command exits with a non-zero status. | ||
|
||
echo "Running pytest..." | ||
poetry run pytest | ||
|
||
echo "Running Bandit..." | ||
poetry run bandit -r pyshiny_template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters