Skip to content

Pyproject switch

Pyproject switch #3

Workflow file for this run

name: Latest per-python environments
on:
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-22.04, macos-13, macos-14] # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
toolchain:
- {compiler: gcc, version: 13}
name: ${{ matrix.os }} python${{ matrix.python-version}}
steps:
- name: Checkout photodynam
uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: |
python -m pip install --upgrade pip
- name: Install photodynam
run: |
pip install .
- name: Test photodynam install
run: |
python -c "import photodynam"
- name: Run tests
run: |
pytest --verbose --capture=no tests/