Skip to content

Commit

Permalink
fix: Update workflows (#86)
Browse files Browse the repository at this point in the history
* fix: Update script action

* fix: Update doc deploy action

* fix: Update push action
  • Loading branch information
jsakv authored Aug 19, 2024
1 parent b2c0da0 commit f5bdbdc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/doc-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,27 @@ jobs:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Python 3.10.5
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: false
activate-environment: pyrorisks
- run: conda install conda-lock
- run: conda-lock install -n pyro-risks pyrorisks.conda-lock.yml

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.1
virtualenvs-create: false

- name: Install dependencies
run: poetry install


- name: Build documentation
run: |
poetry run sphinx-build docs/source docs/build -a -v
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: push
on:
push:
branches: [ main ]
branches: [ master ]

env:
IMAGE_NAME: pyro-risks
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
get-effis-fwi:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4

Expand All @@ -16,12 +19,12 @@ jobs:
with:
python-version: 3.10.5

- uses: s-weigand/setup-conda@v1
- uses: conda-incubator/setup-miniconda@v3
with:
activate-conda: false
auto-update-conda: false
activate-environment: pyrorisks
- run: conda install conda-lock
- run: conda-lock install -n pyro-risks pyrorisks.conda-lock.yml
- run: conda activate pyro-risks

- name: Install Poetry
uses: snok/install-poetry@v1
Expand Down

0 comments on commit f5bdbdc

Please sign in to comment.