Skip to content

add test case for a failing syntax #246

add test case for a failing syntax

add test case for a failing syntax #246

Workflow file for this run

# Run available tests for all push and pull-request actions.
name: pytest
on:
push:
pull_request:
release:
types:
- published
jobs:
pytest:
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
env:
PYTHON: ${{ matrix.python-version }}
BLARK_CHECK_GRAMMAR_COVERAGE: 1
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
check-latest: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
python -m pip install .
- name: Test with pytest
run: |
pytest -v --cov=blark/ --cov-report=xml:coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./coverage/reports/
env_vars: PYTHON
fail_ci_if_error: true
files: ./coverage.xml
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Upload test artifacts
uses: actions/upload-artifact@v3
with:
name: coverage-${{ github.sha }}_${{ matrix.os }}-${{ matrix.python-version }}
path: |
./coverage*