Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
samkellerhals committed Dec 10, 2024
1 parent 68d23da commit 8a05609
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 36 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,35 @@ jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- uses: actions/checkout@v3

- name: Install Dependencies
uses: ./.github/workflows/install-dependencies.yml
# Step 2: Install system dependencies
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
# Step 3: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

# Step 4: Install all icon4py namespace packages
- name: Install all icon4py namespace packages
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r ./requirements-dev.txt
python -m pip list
# Step 5: Build documentation
- name: Build documentation
run: |
cd model/atmosphere/dycore/docs
make html
# Step 6: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/install-dependencies.yml

This file was deleted.

25 changes: 22 additions & 3 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,38 @@ on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
types:
- opened
- reopened
- synchronize

jobs:
pre-commit-icon4py-model:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- uses: actions/checkout@v3

- name: Install Dependencies
uses: ./.github/workflows/install-dependencies.yml
# Step 2: Install system dependencies
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
# Step 3: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

# Step 4: Install all icon4py namespace packages
- name: Install all icon4py namespace packages
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r ./requirements-dev.txt
python -m pip list
# Step 5: Run pre-commit checks
- name: Run checks
run: |
pre-commit run

0 comments on commit 8a05609

Please sign in to comment.