-
Notifications
You must be signed in to change notification settings - Fork 2
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
7 changed files
with
73 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 'lint' | ||
|
||
on: | ||
[push, pull_request] | ||
|
||
jobs: | ||
ruff-check: | ||
name: "Lint with Ruff" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: chartboost/ruff-action@v1 | ||
with: | ||
src: "./src" | ||
|
||
black-autoformat: | ||
name: "Lint with Black" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable |
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,26 @@ | ||
name: 'test' | ||
|
||
on: | ||
[push, pull_request] | ||
|
||
jobs: | ||
pytest: | ||
name: "Test with PyTest" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: "Install Dependencies" | ||
shell: bash | ||
run: | | ||
python -m pip install flit | ||
cd src | ||
flit install --extras all | ||
- name: "Run Tests" | ||
shell: bash | ||
run: | | ||
pytest --nbmake --nbmake-timeout=30000 examples/*.ipynb |
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,26 @@ | ||
name: 'test' | ||
|
||
on: | ||
[push, pull_request] | ||
|
||
jobs: | ||
pytest: | ||
name: "Test with PyTest" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: "Install Dependencies" | ||
shell: bash | ||
run: | | ||
python -m pip install flit | ||
cd src | ||
flit install --extras all | ||
- name: "Run Tests" | ||
shell: bash | ||
run: | | ||
pytest ./src |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.