Pyproject switch #2
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
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/ |