update docs deps #257
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
# this file is *not* meant to cover or endorse the use of GitHub Actions, but rather to | |
# help test this project | |
name: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
python: ['3.10'] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[test,dev] | |
- name: Linter | |
run: | | |
black --check src tests | |
ruff check . | |
- name: Annotate locations with typos | |
uses: codespell-project/codespell-problem-matcher@v1 | |
- name: Codespell | |
uses: codespell-project/actions-codespell@v2 | |
# Run tests | |
- name: Test | |
run: | | |
pytest |