Skip to content

Commit aaf83c4

Browse files
Merge pull request #52 from TUW-GEO/dev
fix destination repo
2 parents b79b1ca + eb391fc commit aaf83c4

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Diff for: .github/workflows/publish-pythia.yaml

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
on:
22
workflow_dispatch:
33
push:
4-
tags: [ v* ]
4+
tags: [v*]
55
# When a tag like v2024.11.27 is created, the workflow will be triggered
66
# Should follow https://calver.org/ for versioning
77

88
name: Pythia Publish
99

1010
permissions:
11-
contents: write
12-
pages: write
11+
contents: write
12+
pages: write
1313

1414
jobs:
1515
build-deploy:
@@ -25,7 +25,7 @@ jobs:
2525
- name: Checkout Pythia Book
2626
uses: actions/checkout@v4
2727
with:
28-
repository: tuw-geo/eo-datascience-cookbook
28+
repository: ProjectPythia/eo-datascience-cookbook
2929
path: pythia
3030
fetch-depth: 0
3131
token: ${{ secrets.BOT_TOKEN }}
@@ -37,8 +37,8 @@ jobs:
3737
- name: Install Python and Jupyter
3838
uses: actions/setup-python@v5
3939
with:
40-
python-version: '3.11'
41-
cache: 'pip'
40+
python-version: "3.11"
41+
cache: "pip"
4242
- run: pip install jupyter jupyter-cache
4343

4444
- name: Cache Environment
@@ -66,14 +66,20 @@ jobs:
6666
- name: Commit Files Pythia Book
6767
run: |
6868
python -m pip install .
69-
python -m pip install nbstripout
69+
python -m pip install nbstripout black flake8 isort nbqa
7070
render_sfinx_toc ./pythia
7171
clean_nb ./notebooks ./pythia/notebooks
7272
cp -rf ./chapters/references.bib ./pythia/notebooks/
7373
cp -rf --parents ./notebooks/images ./pythia
7474
cp -rf --parents $(find notebooks -name "*.yml") ./pythia
7575
cd ./pythia
7676
find . -name '*.ipynb' -exec nbstripout {} +
77+
find . -name '*.ipynb' -exec nbqa black {} +
78+
find . -name '*.ipynb' -exec nbqa isort {} +
79+
find . -name '*.ipynb' -exec nbqa flake8 {} +
80+
python -m black .
81+
python -m flake8 .
82+
python -m isort .
7783
git config --local user.name "$GITHUB_ACTOR"
7884
git config --local user.email "[email protected]"
7985
git add .

0 commit comments

Comments
 (0)