Missing parser tests #123
Workflow file for this run
This file contains hidden or 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: unit tests | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
test: | |
name: ${{ matrix.os }} py${{ matrix.python-version }} ${{ matrix.use-docker && '(docker)' || '' }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- name: Legacy Python on Ubuntu | |
os: ubuntu-latest | |
python-version: '3.6' | |
use-docker: true | |
- name: Legacy Python on Ubuntu | |
os: ubuntu-latest | |
python-version: '3.7' | |
use-docker: true | |
- name: Legacy Python on Ubuntu | |
os: ubuntu-latest | |
python-version: '3.8' | |
use-docker: true | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ['3.9','3.10','3.11','3.12','3.13'] | |
use-docker: [false] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
if: ${{ !matrix.use-docker }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run tests with Docker | |
if: ${{ matrix.use-docker }} | |
run: | | |
docker run --rm -v ${{ github.workspace }}:/app -w /app python:${{ matrix.python-version }} bash -c " | |
python -m pip install --upgrade pip setuptools wheel tox | |
python -m pip install '.[test]' | |
pytest | |
" | |
- name: Run tests | |
if: ${{ !matrix.use-docker }} | |
run: | | |
python -m pip install --upgrade pip setuptools wheel tox | |
python -m pip install '.[test]' | |
pytest |