build(deps-dev): bump pygments from 2.12.0 to 2.15.0 #102
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
timeout-minutes: 20 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 6 | |
matrix: | |
os: [ 'ubuntu-latest', 'macos-latest' ,'windows-latest' ] | |
python: [ 3.7, 3.8, 3.9 ] | |
# windows and mac are slow to run python 3.9, so we skip these jobs | |
exclude: | |
- os: windows-latest | |
python: 3.9 | |
- os: macos-latest | |
python: 3.9 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install python dependencies | |
run: python -m pip install -U pip nox | |
- name: Lint | |
run: nox -s lint | |
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.9' | |
- name: Scan packages for vulnerabilities | |
run: nox -s safety | |
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.9' | |
- name: Tests | |
run: nox -s tests-${{ matrix.python }} | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
if: matrix.python == '3.9' | |
with: | |
files: ./coverage-core.xml,./coverage-any_io.xml,./coverage-green.xml |