Skip to content

Bump validators from 0.20.0 to 0.34.0 #546

Bump validators from 0.20.0 to 0.34.0

Bump validators from 0.20.0 to 0.34.0 #546

Workflow file for this run

name: testing
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-testing.txt
- name: Lint with Ruff
run: ruff src
- name: Lint with mypy
run: mypy --ignore-missing-imports src
test:
strategy:
max-parallel: 6
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12]
pandoc-version: [2.9.2, 2.14.0.3]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: ${{ matrix.pandoc-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
- name: Test with pytest
run: |
pip install -e .
pytest --cov=mkdocs_bibtex --cov-report=xml
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml