Skip to content

Commit

Permalink
Merge pull request #1 from Edenhofer/main
Browse files Browse the repository at this point in the history
Add CI for running examples
  • Loading branch information
Ockenfuss authored May 15, 2024
2 parents ffcd13a + 9ef6e7c commit d564706
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/actions/setup_package/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Reusable setup for the python environment and the package installation
runs:
using: composite
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: "pip"
- name: Install package (and its dependencies)
shell: bash
run: |
python -m pip install --upgrade pip
pip install --user .
66 changes: 66 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Test python application

on:
push:
branches: [ "main" ]
pull_request:
types: [opened, reopened]

permissions:
contents: read

jobs:
examples_custom_tile_object:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_package
- name: Run custom_tile_object example
run: |
cd examples
python custom_tile_object.py
examples_frogs_gaussian:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_package
- name: Run frogs_gaussian example
run: |
cd examples
python frogs_gaussian.py
examples_grande_jatte:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_package
- name: Run grande_jatte example
run: |
cd examples
python grande_jatte.py
examples_great_wave:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_package
- name: Run great_wave example
run: |
cd examples
python great_wave.py
examples_hex_rhomb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_package
- name: Run hex_rhomb example
run: |
cd examples
python hex_rhomb.py
examples_reptiles_sinewave:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_package
- name: Run reptiles_sinewave example
run: |
cd examples
python reptiles_sinewave.py

0 comments on commit d564706

Please sign in to comment.