remove testing on python 3.9 #146
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] | |
jobs: | |
latest: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m venv --system-site-packages env | |
source env/bin/activate | |
python -m pip install --upgrade pip | |
python -m pip install -r pip-requirements.txt | |
python --version | |
python -c 'import numpy; print(numpy.__version__)' | |
python -c 'import cython; print(cython.__version__)' | |
python ./setup.py develop | |
# python -m pip -vvv install -e . | |
# fails with "ModuleNotFoundError: No module named 'Cython'" | |
# running setup.py directly is just a workaround. | |
- name: run tests | |
run: | | |
source env/bin/activate | |
python run-tests.py --skip-setup | |
other-os: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest] | |
python-version: [3.12] | |
# have to copy steps from above, as anchors are currently | |
# not supported by github workflow (Jan 2020). | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r pip-requirements.txt | |
python --version | |
python -c 'import numpy; print(numpy.__version__)' | |
python -c 'import cython; print(cython.__version__)' | |
python ./setup.py develop | |
# python -m pip -vvv install -e . | |
# fails with "ModuleNotFoundError: No module named 'Cython'" | |
# running setup.py directly is just a workaround. | |
- name: run tests | |
run: | | |
python run-tests.py --skip-setup |