Skip to content

Update README URLs

Update README URLs #3

Workflow file for this run

on:
push:
branches: [master]
jobs:
test:
runs-on: "ubuntu-latest"
steps:
- name: "Get assignment name"
shell: bash -l {0}
run: |
echo "ASSIGNMENT=$(echo $GITHUB_REPOSITORY | cut -d/ -f2 | cut -d- -f1)" >> $GITHUB_ENV;
- name: "Checkout"
uses: actions/checkout@v3
- name: "Fetch environment file"
shell: bash -l {0}
run: |
curl \
--header 'Authorization: token ${{secrets.PGE323M_SECRET_TOKEN}}' \
--header 'Accept: application/vnd.github.v3.raw' \
-O --location "https://api.github.com/repos/PGE323M/${ASSIGNMENT}-solution/contents/environment.yml"
- name: "Install environment"
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
- name: "Fetch tests"
shell: bash -l {0}
run: |
curl \
--header 'Authorization: token ${{secrets.PGE323M_SECRET_TOKEN}}' \
--header 'Accept: application/vnd.github.v3.raw' \
-O --location "https://api.github.com/repos/PGE323M/${ASSIGNMENT}-solution/contents/test.py"
- name: Fetch Gold Files
shell: bash -l {0}
run: |
curl \
--header 'Authorization: token ${{secrets.PGE323M_SECRET_TOKEN}}' \
--header 'Accept: application/vnd.github.v3.raw' \
-O --location "https://api.github.com/repos/PGE323M/${ASSIGNMENT}-solution/contents/Nechelik_depth.dat" \
-O --location "https://api.github.com/repos/PGE323M/${ASSIGNMENT}-solution/contents/{pressure_gold,saturation_gold}.npy" \
-O --location "https://api.github.com/repos/PGE323M/${ASSIGNMENT}-solution/contents/inputs.yml"
- name: "Run Tests"
shell: bash -l {0}
run: python -m unittest test.py -vvv