fix: add ipython optional dependency #119
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: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
ruff: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- run: uv sync --all-extras --dev | |
- run: uv run ruff check src/ tests/ docs/source/ examples/ dev/ | |
mypy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- run: uv sync --all-extras --dev | |
- run: uv run mypy src/ tests/ docs/source/ examples/ dev/ | |
ruff-format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- run: uv sync --all-extras --dev | |
- run: uv run ruff format --check src/ tests/ docs/source/ examples/ dev/ | |
pytest: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: actions/checkout@v4 | |
with: | |
repository: lukasturcani/nomad-server | |
path: nomad-server | |
ref: lukas/open-api | |
- run: mkdir -p nomad-server/datastore | |
- uses: hoverkraft-tech/[email protected] | |
with: | |
compose-file: "nomad-server/docker-compose.yaml" | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- run: uv sync --all-extras --dev | |
- run: | |
uv run dev/init_nomad_nmr_test_db.py | |
mongodb://localhost:27017 | |
nomad-server/datastore | |
dev/nmr-data | |
- run: uv run pytest --cov=src --cov-report term-missing | |
doctest: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: actions/checkout@v4 | |
with: | |
repository: lukasturcani/nomad-server | |
path: nomad-server | |
ref: lukas/open-api | |
- run: mkdir -p nomad-server/datastore | |
- uses: hoverkraft-tech/[email protected] | |
with: | |
compose-file: "nomad-server/docker-compose.yaml" | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- run: uv sync --all-extras --dev | |
- run: | |
uv run dev/init_nomad_nmr_test_db.py | |
mongodb://localhost:27017 | |
nomad-server/datastore | |
dev/nmr-data | |
- run: uv run make -C docs doctest |