-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
397 changed files
with
14,352 additions
and
4,810 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
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,4 @@ | ||
Closes #<issue> | ||
Closes [<issue>] | ||
|
||
### Description Of Changes | ||
|
||
|
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 |
---|---|---|
|
@@ -75,43 +75,6 @@ jobs: | |
path: /tmp/python-${{ matrix.python_version }}.tar | ||
retention-days: 1 | ||
|
||
################### | ||
## Static Checks ## | ||
################### | ||
Static-Checks: | ||
strategy: | ||
matrix: | ||
session_name: | ||
[ | ||
'"isort(check)"', | ||
'"black(check)"', | ||
"mypy", | ||
"pylint", | ||
"xenon", | ||
"check_install", | ||
'"pytest(nox)"', | ||
] | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON_VERSION }} | ||
cache: "pip" | ||
|
||
- name: Install Nox | ||
run: pip install nox>=2022 | ||
|
||
- name: Install Dev Requirements | ||
run: pip install -r dev-requirements.txt | ||
|
||
- name: Run Static Check | ||
run: nox -s ${{ matrix.session_name }} | ||
|
||
################## | ||
## Performance ## | ||
################## | ||
|
@@ -321,6 +284,12 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON_VERSION }} | ||
cache: "pip" | ||
|
||
- name: Install Nox | ||
run: pip install nox>=2022 | ||
|
||
|
@@ -361,7 +330,7 @@ jobs: | |
matrix: | ||
python_version: ["3.9.18", "3.10.13"] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
timeout-minutes: 30 | ||
# In PRs run with the "unsafe" label, or run on a "push" event to main | ||
if: contains(github.event.pull_request.labels.*.name, 'run unsafe ci checks') || github.event_name == 'push' | ||
steps: | ||
|
@@ -377,6 +346,12 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON_VERSION }} | ||
cache: "pip" | ||
|
||
- name: Install Nox | ||
run: pip install nox>=2022 | ||
|
||
|
@@ -463,12 +438,18 @@ jobs: | |
- name: Load image | ||
run: docker load --input /tmp/python-${{ matrix.python_version }}.tar | ||
|
||
- name: Install Nox | ||
run: pip install nox>=2022 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON_VERSION }} | ||
cache: "pip" | ||
|
||
- name: Install Nox | ||
run: pip install nox>=2022 | ||
|
||
- name: Get Vault Token | ||
uses: hashicorp/[email protected] | ||
with: | ||
|
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
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,53 @@ | ||
name: Backend Static Code Checks | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "main" | ||
- "release-**" | ||
|
||
env: | ||
IMAGE: ethyca/fides:local | ||
DEFAULT_PYTHON_VERSION: "3.10.13" | ||
# Docker auth with read-only permissions. | ||
DOCKER_USER: ${{ secrets.DOCKER_USER }} | ||
DOCKER_RO_TOKEN: ${{ secrets.DOCKER_RO_TOKEN }} | ||
|
||
jobs: | ||
################### | ||
## Static Checks ## | ||
################### | ||
Static-Checks: | ||
strategy: | ||
matrix: | ||
session_name: | ||
[ | ||
'"isort(check)"', | ||
'"black(check)"', | ||
"mypy", | ||
"pylint", | ||
"xenon", | ||
"check_install", | ||
'"pytest(nox)"', | ||
] | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON_VERSION }} | ||
cache: "pip" | ||
|
||
- name: Install Nox | ||
run: pip install nox>=2022 | ||
|
||
- name: Install Dev Requirements | ||
run: pip install -r dev-requirements.txt | ||
|
||
- name: Run Static Check | ||
run: nox -s ${{ matrix.session_name }} |
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
Oops, something went wrong.