Skip to content

Commit

Permalink
corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelwnaylor committed Nov 18, 2024
1 parent 51cf1ef commit 244d2cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ on:
push:
branches:
- main
paths-ignore:
- 'examples/smarteole_example.ipynb'
pull_request:
branches:
- main
paths-ignore:
- 'examples/smarteole_example.ipynb'
workflow_dispatch:


Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smarteole_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
paths-ignore:
- 'examples/smarteole_example.ipynb'
pull_request:
workflow_dispatch:

Expand All @@ -15,6 +13,7 @@ permissions:

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
NOTEBOOK_UPDATE_COMMIT_MESSAGE: "Update smarteole example notebook"

jobs:
lint-and-test:
Expand Down Expand Up @@ -53,19 +52,23 @@ jobs:
run: |
source .venv/bin/activate
pip install -U .[all]
- name: 'revert temporary changes that were made on pyproject.toml'
run: |
sed -i 's!\["wind_up\*", "examples"\]!\["wind_up\*"\]!' pyproject.toml
- name: 'lint check & test'
run: |
source .venv/bin/activate
poe lint-check
poe test
- name: 'execute smarteole example notebook and push changes'
if: ${{ github.event.head_commit.message }} != ${{ env.BRANCH_NAME }}
run: |
source .venv/bin/activate
poe smarteole-nb
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
if git status | grep -q modified; then
git commit -m "Update smarteole example notebook"
git commit -m ${{ env.BRANCH_NAME }}
git push
fi
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ all = ["res-wind-up[dev,examples]"]

[tool.setuptools.packages.find]
where = ["."]
include = ["wind_up*", "examples"]
include = ["wind_up*"]

[tool.ruff]
line-length = 120
Expand Down

0 comments on commit 244d2cf

Please sign in to comment.