Move remaining benchmark-related code out of gcpy and into gcpy/benchmark/modules folder (plus other improvements) #65
Workflow file for this run
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
--- | |
# | |
# GitHub action to build the GCPy production environment with micromamba | |
# See: https://github.com/marketplace/actions/setup-micromamba | |
# | |
name: build-gcpy-environment | |
on: | |
push: | |
branches: [ "main", "dev", "dependabot/*" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main", "dev" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- name: Checkout the GCPy repository | |
uses: actions/checkout@v4 | |
- name: Create "gcpy_env" environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: 'latest' | |
environment-file: docs/environment_files/gcpy_environment.yml | |
init-shell: bash | |
cache-environment: false | |
generate-run-shell: true | |
post-cleanup: 'all' | |
- name: Test if "import gcpy" works | |
run: python -c "import gcpy" | |
shell: micromamba-shell {0} | |
- name: Test if we can create a plot | |
run: python -m gcpy.examples.plotting.create_test_plot | |
shell: micromamba-shell {0} |