-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
b6cc606
commit 971c9b2
Showing
15 changed files
with
917 additions
and
86 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
root = true | ||
|
||
[*] | ||
end_of_line = = lf | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.{js, py}] | ||
|
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,73 @@ | ||
name: Explorer Tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
mappings_explorer_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Configure Environment | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Python | ||
id: setup-python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
# Prepare Poetry | ||
- name: Attempt Poetry install from cache | ||
uses: actions/cache@v3 | ||
id: cached-poetry | ||
with: | ||
path: ./.poetry | ||
key: venv::${{ runner.os }}::${{ steps.setup-python.outputs.python-version }}::poetry | ||
- name: Install Poetry | ||
if: steps.cached-poetry.outputs.cache-hit != 'true' | ||
run: | | ||
python -m venv .poetry | ||
source ./.poetry/bin/activate | ||
pip install poetry | ||
deactivate | ||
mkdir $PWD/.poetry/.bin | ||
ln -s $PWD/.poetry/bin/poetry $PWD/.poetry/.bin/poetry | ||
- name: Add Poetry to PATH | ||
run: echo "$PWD/.poetry/.bin" >> $GITHUB_PATH | ||
|
||
# Prepare Virtual Environment | ||
- name: Configure Poetry | ||
run: poetry config virtualenvs.in-project true | ||
- name: Load cached virtual environment | ||
uses: actions/cache@v3 | ||
id: cached-dependencies | ||
with: | ||
path: ./.venv | ||
key: venv::${{ runner.os }}::${{ steps.setup-python.outputs.python-version }}::${{ hashFiles('./poetry.lock') }} | ||
- name: Install dependencies | ||
if: steps.cached-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
- name: Install Mappings Explorer | ||
run: poetry install --no-interaction --only-root | ||
|
||
# Check Lint, Test, Security | ||
- name: Lint Mappings Explorer | ||
run: poetry run make lint | ||
- name: Test Mappings Explorer | ||
run: poetry run make test-ci | ||
- name: Run Bandit security check | ||
run: poetry run bandit -r ./src -ll -ii | ||
- name: Safety vulnerability check | ||
run: | | ||
poetry export -f requirements.txt | poetry run safety check --full-report --stdin | ||
# Upload Test Coverage | ||
- name: Upload coverage to CodeCov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: $\{\{ secrets.CODECOV_SECRET \}\} | ||
files: ./coverage.xml | ||
verbose: true |
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,21 @@ | ||
name: Update Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Update release | ||
uses: google-github-actions/release-please-action@v3 | ||
with: | ||
command: manifest |
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 |
---|---|---|
|
@@ -8,3 +8,5 @@ docs/_build/ | |
.mypy_cache/ | ||
*.tmp | ||
TODO* | ||
.DS_Store | ||
.coverage |
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 @@ | ||
{} |
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,10 @@ | ||
{ | ||
// See: https://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for documentation about the extensions.json format. | ||
"recommendations": [ | ||
"charliermarsh.ruff", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-python.black-formatter" | ||
] | ||
} |
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
Empty file.
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.