Bump black from 19.10b0 to 24.3.0 #15
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: tests | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
name: black and pytest | |
strategy: | |
matrix: | |
os: [ubuntu-16.04, ubuntu-18.04, macos-latest] | |
python-version: [3.5, 3.6, 3.7, 3.8] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest pytest-cov | |
- name: black linter | |
run: | | |
pip install black | |
black . --check | |
if: matrix.python-version > 3.5 | |
- name: test scripts | |
run: | | |
pytest --cov=subway -svv |