Bump black from 20.8b1 to 24.3.0 #5
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: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# We try to go with the currently active Python branches: | |
# https://devguide.python.org/#status-of-python-branches | |
python-version: [3.6, 3.7, 3.8, 3.9] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run unit tests | |
run: | | |
pip install pytest coverage pytest-cov | |
pytest --cov=pyrpm.spec | |
- name: Check for type errors | |
run: | | |
pip install pytest pytest-mypy | |
pytest --mypy |