forked from github/ghas-jira-integration
-
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.
Update github actions for PRs opened against main (github#29)
* update pr action and requirements.txt * fix flake8 findings * remove dev container configurations
- Loading branch information
Jamie Sadler
authored
Jan 5, 2022
1 parent
4af3b20
commit 8cedb7b
Showing
7 changed files
with
42 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: python | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
PYTHON_VERSION: "3.10.0" | ||
|
||
jobs: | ||
python: | ||
runs-on: ubuntu-20.04 | ||
name: python | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: install dependencies | ||
run: pip install -r requirements.txt | ||
|
||
- name: run black formatter | ||
run: black --check . | ||
|
||
- name: run flake8 linter | ||
# Ignore linting errors that the black formatter is opiniated about | ||
run: flake8 --ignore E501,W503 . | ||
|
||
- name: run bandit security scan | ||
run: bandit -r . |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
bandit~=1.7.0 | ||
black~=21.0b | ||
flake8~=4.0.0 | ||
flask~=2.0.0 | ||
requests~=2.26.0 | ||
jira~=3.0.0 | ||
logging-formatter-anticrlf==1.2 | ||
logging-formatter-anticrlf==1.2 | ||
requests~=2.26.0 |
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