Skip to content

OOMMFPy manual test workflow #12

OOMMFPy manual test workflow

OOMMFPy manual test workflow #12

Workflow file for this run

name: OOMMFPy manual test workflow
on:
workflow_dispatch:
branches: [ test_gh_actions ]
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
poetry-version: [1.8.3]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install pip and poetry ${{ matrix.poetry-version }}
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry==${{ matrix.poetry-version }}
- name: View poetry --help
run: poetry --help
- name: Install dependencies
shell: bash
run: python -m poetry install
- name: Test with pytest
run: |
python -m poetry run python -m pytest -v test