-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release 0.3.5 * Add devcontainer badge to README.md * Add missing dotfiles * Delete removed files * Add missing pre-commit config * Fix extra argument for pre-commit
- Loading branch information
Showing
60 changed files
with
5,700 additions
and
2,313 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 |
---|---|---|
|
@@ -14,47 +14,41 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: "repo" | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
python-version: "3.10" | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
key: ${{ hashFiles('repo/poetry.lock') }} | ||
key: ${{ hashFiles('poetry.lock') }} | ||
id: cache | ||
|
||
- name: Install poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
- name: Install dependencies | ||
shell: bash -l {0} | ||
run: | | ||
cd repo | ||
poetry env use 3.9 | ||
poetry env use 3.10 | ||
poetry install | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
- name: Verify pre-commit checks | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files | ||
|
||
- name: Test with pytest | ||
shell: bash -l {0} | ||
run: | | ||
cd repo | ||
poetry run python -m pytest ./test | ||
run: poetry run python -m pytest ./test | ||
|
||
- name: Create build artifact | ||
shell: bash -l {0} | ||
run: | | ||
cd repo | ||
poetry build | ||
run: poetry build | ||
|
||
- name: Upload build artifact | ||
# if: github.ref == 'refs/heads/main' # only create artifacts on push to main | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Build artifacts | ||
path: ./repo/dist | ||
retention-days: 90 | ||
path: ./dist | ||
retention-days: 90 |
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,39 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: black | ||
name: black | ||
entry: poetry run black | ||
language: system | ||
types_or: [python, jupyter] | ||
args: [--config=./pyproject.toml] | ||
- repo: local | ||
hooks: | ||
- id: isort | ||
name: isort | ||
entry: poetry run isort | ||
language: system | ||
types: [python] | ||
- repo: local | ||
hooks: | ||
- id: poetry lock | ||
name: poetry lock check | ||
entry: poetry lock --check | ||
pass_filenames: false | ||
language: system | ||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: poetry run mypy | ||
pass_filenames: false | ||
language: system | ||
types: [python] | ||
args: ["--config-file=pyproject.toml", "."] | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: poetry run pylint | ||
language: system | ||
types: [python] |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.