Bump actions/setup-python from 4 to 5 #406
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] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12-dev"] | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install system dependencies [Ubuntu] | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y graphviz gcc-multilib | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install --upgrade pytest | |
python -m pip install -e . | |
- name: Download CIF [Ubuntu] | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
curl -sSfL -o cif.tar.xz https://github.com/ldv-klever/cif/releases/download/v1.2/linux-x86_64-cif-1.2.tar.xz | |
- name: Download CIF [macOS] | |
if: startsWith(matrix.os, 'macos') | |
run: | | |
curl -sSfL -o cif.tar.xz https://github.com/ldv-klever/cif/releases/download/v1.2/macos-x86_64-cif-1.2.tar.xz | |
- name: Install CIF | |
if: "!startsWith(matrix.os, 'windows')" | |
run: | | |
tar xf cif.tar.xz | |
- name: Test with pytest | |
if: "!startsWith(matrix.os, 'windows')" | |
run: | | |
PATH=$GITHUB_WORKSPACE/cif/bin:$PATH pytest | |
- name: Test with pytest [windows] | |
if: startsWith(matrix.os, 'windows') | |
run: | | |
pytest .\tests\test_windows.py |