Bump actions/setup-python from 4 to 5 #5
Workflow file for this run
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: Run Tests | |
on: [push, pull_request] | |
env: | |
PYTEST_ADDOPTS: "--color=yes" | |
PYTHONWARNINGS: error | |
jobs: | |
run_pytest: | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
python-version: ["3.8", "3.12", "3.13-dev"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
# TODO: remove this once the warning is fixed in Python 3.13-dev: | |
env: | |
PYTHONWARNINGS: error,default::DeprecationWarning | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Double-check Python version | |
run: | | |
python --version | |
- name: Checkout submodules | |
run: | | |
python tests/update_submodules.py | |
- name: Upgrade pip | |
env: | |
PYTHONWARNINGS: error,default::DeprecationWarning | |
run: | | |
python -m pip install pip --upgrade | |
- name: Install Python package | |
env: | |
PYTHONWARNINGS: error,default::DeprecationWarning | |
run: | | |
python -m pip install . | |
- name: Install test dependencies | |
env: | |
PYTHONWARNINGS: error,default::DeprecationWarning | |
run: | | |
python -m pip install -r tests/requirements.txt | |
- name: Run pytest | |
run: | | |
python -m pytest |