-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Edenhofer/main
Add CI for running examples
- Loading branch information
Showing
2 changed files
with
81 additions
and
0 deletions.
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,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 . |
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,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 |