get_cells #664
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: Test pre-commit, code and docs | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
- name: Install ci dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install -e .[ci] | |
- uses: pre-commit/[email protected] | |
test_code: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 12 | |
matrix: | |
python-version: ["3.10"] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: pyproject.toml | |
- name: Install dependencies | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
pip install -e .[ci] | |
make gds-download | |
- name: Test with pytest | |
env: | |
KFACTORY_LOGFILTER__LEVEL: "ERROR" | |
run: pytest -vv -s | |
test_docs: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 12 | |
matrix: | |
python-version: ["3.10"] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
mamba-version: "*" | |
channels: conda-forge,defaults | |
channel-priority: true | |
activate-environment: anaconda-client-env | |
- name: Install dependencies | |
run: | | |
python -m pip install --user -U pip | |
python -m pip install --user -e .[docs,ci] | |
python -m ipykernel install --user --name python3 | |
make install | |
- name: Test documentation | |
run: | | |
make docs |