-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from irgolic/cleanup-pjt-dev
- Loading branch information
Showing
27 changed files
with
5,141 additions
and
1,595 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,4 @@ | ||
# Add commit hashes here for ignored commits | ||
|
||
f93a09e0378b55a47faebf5690cb036aab4e99a2 | ||
7f4bd896704515f9ee9516db6c6863506c31be7e |
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,79 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
# FIXME replace this with main after merge to main | ||
- pjt-dev | ||
# - main | ||
pull_request: | ||
branches: | ||
# FIXME replace this with main after merge to main | ||
- pjt-dev | ||
# - main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pytest: | ||
defaults: | ||
run: | ||
working-directory: python | ||
strategy: | ||
matrix: | ||
python-version: [ 3.12 ] | ||
poetry-version: [ 1.7.1 ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: pipx install poetry | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'poetry' | ||
|
||
- run: poetry install --with dev | ||
- run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH | ||
|
||
- run: make test | ||
|
||
pyright: | ||
defaults: | ||
run: | ||
working-directory: python | ||
strategy: | ||
matrix: | ||
python-version: [3.12] | ||
pyright-version: [1.1.343] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: pipx install poetry | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'poetry' | ||
|
||
- run: poetry install --with dev | ||
- run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH | ||
|
||
- uses: jakebailey/pyright-action@v1 | ||
with: | ||
version: ${{ matrix.pyright-version }} | ||
|
||
ruff: | ||
defaults: | ||
run: | ||
working-directory: python | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: chartboost/ruff-action@v1 | ||
with: | ||
args: "check" | ||
- uses: chartboost/ruff-action@v1 | ||
with: | ||
args: "format --check" |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,13 @@ | ||
test: | ||
poetry run pytest | ||
|
||
type: | ||
poetry run pyright | ||
|
||
format: | ||
poetry run ruff format . | ||
|
||
lint: | ||
poetry run ruff check . --fix | ||
|
||
all: format lint type test |
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.