Skip to content

Bump actions/checkout from 3 to 4 #271

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #271

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test_spin:
strategy:
matrix:
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Install system dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y gdb
- name: Install
run: |
pip install -e .
pip install pytest meson-python ninja build sphinx
- name: Library tests
env:
PYTHONPATH: "."
run: |
pytest --pyargs spin
- name: Functional tests (Linux)
if: matrix.os == 'ubuntu-latest'
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
env:
TERM: xterm-256color
run: |
source .github/workflows/test.sh
spin gdb -c 'import example_pkg; example_pkg.echo("hi")' -- --eval "run" --batch
- name: Functional tests (MacOS)
if: matrix.os == 'macos-latest'
shell: bash
run: source .github/workflows/test.sh
- name: Functional tests (Windows)
if: matrix.os == 'windows-latest'
shell: bash
run: source .github/workflows/test.sh