ci: test with python 3.12 #47
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: CI tasks | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install deps | |
shell: bash | |
env: | |
VENVSTARTER_ONLY_MAKE_VENV: "1" | |
run: | | |
if [ "$RUNNER_OS" == "Windows" ]; then | |
if ! python -c 'import sys; sys.exit(1) if sys.version_info < (3, 9) else None'; then | |
# Need for python 3.7 and 3.8 on windows | |
python -m venv tools/.python | |
./tools/.python/Scripts/python -m pip install setuptools pip -U | |
fi | |
fi | |
python ./tools/venv | |
- name: Run tests | |
shell: bash | |
run: ./test.sh -v |