Compare '3' with '3.x' and '3.12' #358
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, pull_request, workflow_dispatch] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ | |
"pypy-3.10", | |
"pypy-3.9", | |
"3.8", | |
"3.9", | |
"3.10", | |
"3.11", | |
"3.12", | |
"3.13", | |
"3", | |
"3.x", | |
] | |
os: [ | |
windows-latest, | |
macOS-latest, | |
ubuntu-latest, | |
] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
cache: pip | |
cache-dependency-path: .github/workflows/test.yml | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install -U pytest | |
python -m pip install -U tqdm | |
- name: Test | |
run: | | |
python --version | |
python test.py | |
python -m pip --version | |
jq --version | |
- name: pip cache dir | |
run: | | |
python -m pip cache dir | |
- name: "Non-Windows: pip cache dir > /dev/null" | |
if: "!startsWith(matrix.os, 'windows')" | |
run: | | |
python -m pip cache dir > /dev/null | |
- name: "Windows: pip cache dir > NUL" | |
if: "startsWith(matrix.os, 'windows')" | |
run: | | |
python -m pip cache dir > NUL |