feat: Define client workspace to management caches. #94
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
python-version: '3.10' | |
- name: Lint by pre-commit | |
run: | | |
pipx install pre-commit | |
pre-commit run --all-files | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install '.[test]' | |
- name: Run tests | |
run: | | |
pytest | |
pytest -m webtest | |
buildtest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
python-version: '3.10' | |
- name: Build | |
run: | | |
pipx install flit | |
flit build | |
ls -l dist | |
doctest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install '.[doc]' | |
- name: Run tests | |
run: | | |
make -C docs apidoc linkcheck dirhtml |