Update RTD config #505
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: Test | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
sudo apt install libgirepository1.0-dev | |
python -m pip install --upgrade pip wheel setuptools | |
pip install . | |
- name: Lint with ruff | |
run: | | |
pip install ruff | |
ruff check python/ tests/ | |
- name: Lint with black | |
run: | | |
pip install black | |
black --check python/ | |
black --check tests/ |