-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* run notebooks on coast repo * updated old dir on ls * update to run on very pull request * dropping python version to match conda * fix number 4242 * renamed to make less confusing * logging? ok this is bad but it will help see what git is doing
- Loading branch information
1 parent
bd39925
commit 78a63af
Showing
7 changed files
with
223 additions
and
1 deletion.
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,44 @@ | ||
name: notebook_to_md (altimetry) | ||
on: pull_request | ||
jobs: | ||
commit-notebooks: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Checkout site | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive # Fetch Hugo themes and all extra projects | ||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | ||
path: site | ||
|
||
- name: Checkout coast | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: British-Oceanographic-Data-Centre/COAsT | ||
ref: develop | ||
path: external | ||
|
||
- name: Prepare environement | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: coast | ||
environment-file: external/environment.yml | ||
python-version: 3.8.10 | ||
- name: prep exec notebooks | ||
run: | | ||
conda info | ||
conda list | ||
conda config --show | ||
cd $GITHUB_WORKSPACE/external | ||
sudo apt install wget unzip -y | ||
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip | ||
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/altimetry/example_files | ||
mkdir -p ./example_scripts/notebook_tutorials/markdown/altimetry | ||
ls ./example_scripts/notebook_tutorials | ||
pip install . | ||
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/altimetry/config | ||
bash notebook_to_md.sh altimetry | ||
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,43 @@ | ||
name: notebook_to_md (general) | ||
on: pull_request | ||
jobs: | ||
commit-notebooks: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Checkout site | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive # Fetch Hugo themes and all extra projects | ||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | ||
path: site | ||
|
||
- name: Checkout coast | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: British-Oceanographic-Data-Centre/COAsT | ||
ref: develop | ||
path: external | ||
|
||
- name: Prepare environement | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: coast | ||
environment-file: external/environment.yml | ||
python-version: 3.8.10 | ||
- name: prep exec notebooks | ||
run: | | ||
conda info | ||
conda list | ||
conda config --show | ||
cd $GITHUB_WORKSPACE/external | ||
sudo apt install wget unzip -y | ||
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip | ||
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/general/example_files | ||
mkdir -p ./example_scripts/notebook_tutorials/markdown/general | ||
ls ./example_scripts/notebook_tutorials | ||
pip install . | ||
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/general/config | ||
bash notebook_to_md.sh general |
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,43 @@ | ||
name: notebook_to_md (gridded) | ||
on: pull_request | ||
jobs: | ||
commit-notebooks: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Checkout site | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive # Fetch Hugo themes and all extra projects | ||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | ||
path: site | ||
|
||
- name: Checkout coast | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: British-Oceanographic-Data-Centre/COAsT | ||
ref: develop | ||
path: external | ||
|
||
- name: Prepare environement | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: coast | ||
environment-file: external/environment.yml | ||
python-version: 3.8.10 | ||
- name: prep exec notebooks | ||
run: | | ||
conda info | ||
conda list | ||
conda config --show | ||
cd $GITHUB_WORKSPACE/external | ||
sudo apt install wget unzip -y | ||
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip | ||
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/gridded/example_files | ||
mkdir -p ./example_scripts/notebook_tutorials/markdown/gridded | ||
ls ./example_scripts/notebook_tutorials | ||
pip install . | ||
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/gridded/config | ||
bash notebook_to_md.sh gridded |
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,43 @@ | ||
name: notebook_to_md (profile) | ||
on: pull_request | ||
jobs: | ||
commit-notebooks: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Checkout site | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive # Fetch Hugo themes and all extra projects | ||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | ||
path: site | ||
|
||
- name: Checkout coast | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: British-Oceanographic-Data-Centre/COAsT | ||
ref: develop | ||
path: external | ||
|
||
- name: Prepare environement | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: coast | ||
environment-file: external/environment.yml | ||
python-version: 3.8.10 | ||
- name: prep exec notebooks | ||
run: | | ||
conda info | ||
conda list | ||
conda config --show | ||
cd $GITHUB_WORKSPACE/external | ||
sudo apt install wget unzip rsync -y | ||
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip | ||
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/profile/example_files | ||
mkdir -p ./example_scripts/notebook_tutorials/markdown | ||
ls ./example_scripts/notebook_tutorials | ||
pip install . | ||
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/profile/config | ||
bash notebook_to_md.sh profile |
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,43 @@ | ||
name: notebook_to_md (tidegauge) | ||
on: pull_request | ||
jobs: | ||
commit-notebooks: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Checkout site | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive # Fetch Hugo themes and all extra projects | ||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | ||
path: site | ||
|
||
- name: Checkout coast | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: British-Oceanographic-Data-Centre/COAsT | ||
ref: develop | ||
path: external | ||
|
||
- name: Prepare environement | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: coast | ||
environment-file: external/environment.yml | ||
python-version: 3.8.10 | ||
- name: prep exec notebooks | ||
run: | | ||
conda info | ||
conda list | ||
conda config --show | ||
cd $GITHUB_WORKSPACE/external | ||
sudo apt install wget unzip -y | ||
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip | ||
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/tidegauge/example_files | ||
mkdir -p ./example_scripts/notebook_tutorials/markdown/tidegauge | ||
ls ./example_scripts/notebook_tutorials | ||
pip install . | ||
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/tidegauge/config | ||
bash notebook_to_md.sh tidegauge |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Pylint | ||
on: pull_request | ||
jobs: | ||
formatting: | ||
pylinting: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -31,11 +31,14 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global author.email "[email protected]" | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | ||
git status | ||
git checkout -b $GITHUB_HEAD_REF | ||
git pull --rebase origin $GITHUB_HEAD_REF | ||
git status | ||
echo "NEW_SCORE is greater than THREESHOLD_SCORE" | ||
echo "Updating THREESHOLD_SCORE" | ||
echo "$NEW_SCORE" > .pylint-score | ||
git status | ||
git commit -am "Update pylint threeshold score" | ||
git push --set-upstream origin $GITHUB_HEAD_REF | ||
elif [ "$(echo "$NEW_SCORE == $THREESHOLD_SCORE" | bc -l)" -eq 1 ] ; then | ||
|
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