Bump black from 22.10.0 to 24.3.0 #55
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 ] | |
paths: | |
- "**.py" | |
- "**.cfg" | |
- "requirements.txt" | |
pull_request: | |
branches: [ master ] | |
paths: | |
- "**.py" | |
- "**.cfg" | |
- "requirements.txt" | |
jobs: | |
test: | |
strategy: | |
matrix: | |
runner: [ ubuntu-latest, macos-latest ] | |
python: [ "3.8", "3.9", "3.10", "3.11" ] | |
runs-on: ${{matrix.runner}} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{matrix.python}} | |
cache: "pip" | |
- name: Install Python dependencies | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python -m pip install -r requirements.txt | |
- run: tox | |
- uses: codecov/codecov-action@v2 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
- name: Install Python dependencies | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python -m pip install -r requirements.txt | |
- uses: psf/black@stable | |
- uses: py-actions/flake8@v2 | |
- run: pylint src/**/*.py test/*.py | |
env: | |
PYTHONPATH: ${{ github.workspace }}/src | |
test-package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- name: Install Python dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install setuptools wheel twine build | |
- name: Build Python package | |
run: python -m build --sdist --wheel --outdir dist/ . |