Skip to content

[pre-commit.ci] pre-commit autoupdate (#77) #346

[pre-commit.ci] pre-commit autoupdate (#77)

[pre-commit.ci] pre-commit autoupdate (#77) #346

Workflow file for this run

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.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