blackify #3
Workflow file for this run
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: Black, lint and test | |
on: | |
push: | |
branches: | |
- docs | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# You can test your matrix by printing the current Python version | |
- name: Install spoc, black and pylint | |
run: pip install . && pip install black==23.9.1 && pip install pylint==2.15.5 | |
- name: Run black | |
run: black --check . | |
- name: Run pylint | |
run: pylint --fail-under=8 spoc/* tests/test_*.py | |
- name: Run tests | |
run: pytest tests |