Create report for python/cpython #381
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@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
cache: pip | |
cache-dependency-path: .github/workflows/test.yml | |
- name: Install dependencies | |
run: | | |
python3 -m pip install -U pip | |
python3 -m pip install -U pytest | |
python3 -m pip install -U tqdm | |
python3 -m pip install -vvv coverage>=7.4.2 | |
- 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 |