Skip to content

303 add pyGPlates dependency for pip, and require min 1.0.0rc1 (for both pip and conda) #778

303 add pyGPlates dependency for pip, and require min 1.0.0rc1 (for both pip and conda)

303 add pyGPlates dependency for pip, and require min 1.0.0rc1 (for both pip and conda) #778

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Test GPlately
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Conda-forge currently supports Python >=3.9 ...
python-version: ["3.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash -el {0}
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: "1.5.8-0"
environment-file: tests-dir/test-env.yml
create-args: >-
python=${{ matrix.python-version }}
init-shell: >-
bash
powershell
cache-environment: true
post-cleanup: "all"
- name: Install current gplately
run: |
pip install . --no-binary :all: --no-cache-dir --no-dependencies
- name: Test with pytest
run: |
python -m pytest -vv tests-dir/pytestcases