Skip to content

Test

Test #26

Workflow file for this run

name: Test
on:
- workflow_dispatch
# - push
# - pull_request
# - fork
defaults:
run:
shell: bash
jobs:
setup-and-test:
name: Python-${{ matrix.python }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# Linux
- os: ubuntu-latest
python: 3.7
- os: ubuntu-latest
python: 3.8
- os: ubuntu-latest
python: 3.9
- os: ubuntu-latest
python: '3.10'
# macOS
- os: macos-latest
python: '3.10'
# Windows
- os: windows-latest
python: '3.10'
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run Test
run: pytest -v --showlocals tests/testsuite.py
env:
CLEANUP_OK: 0
- name: Upload generated data
uses: actions/upload-artifact@v3
with:
name: out_${{ matrix.os }}_py${{ matrix.python }}
path: |
tests/tmp/
tests/common/