-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds validation and final 0.0.9 fixes (#34)
* Adds validation and final 0.0.9 fixes * [pre-commit.ci] auto fixes from pre-commit.com hooks * Merge * Add known first party * [pre-commit.ci] auto fixes from pre-commit.com hooks * Fix CI * Fix CI --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
141a4af
commit 22c7515
Showing
17 changed files
with
332 additions
and
59 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: shellcheck | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'tools/**/*.sh' | ||
- '.github/workflows/shellcheck.yml' | ||
pull_request: | ||
paths: | ||
- 'tools/**/*.sh' | ||
- '.github/workflows/shellcheck.yml' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ludeeus/action-shellcheck@2.0.0 | ||
env: | ||
SHELLCHECK_OPTS: --shell bash | ||
with: | ||
severity: style | ||
check_together: 'yes' |
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,48 @@ | ||
name: test-tools | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "tools/**" | ||
- '.github/workflows/tools.yml' | ||
pull_request: | ||
paths: | ||
- "tools/**" | ||
- '.github/workflows/tools.yml' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
mypy: | ||
name: Run mypy | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install poetry | ||
run: | | ||
curl -sSL "https://install.python-poetry.org" | python | ||
# Adding `poetry` to `$PATH`: | ||
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
cd tools | ||
poetry config virtualenvs.in-project true | ||
poetry run pip install -U pip | ||
poetry install | ||
- run: cd tools && poetry run mypy *.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,42 @@ | ||
name: validate | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
validate: | ||
name: Run validation | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install poetry | ||
run: | | ||
curl -sSL "https://install.python-poetry.org" | python | ||
# Adding `poetry` to `$PATH`: | ||
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
cd tools | ||
poetry config virtualenvs.in-project true | ||
poetry run pip install -U pip | ||
poetry install | ||
- run: poetry run -C tools bash tools/validate.sh |
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
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.