Bump version #248
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: 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@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- 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 | |
- 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 |