Skip to content

Commit

Permalink
Merge pull request #1 from DerwenAI/dev
Browse files Browse the repository at this point in the history
test CI pipeline
  • Loading branch information
ceteri authored Mar 4, 2024
2 parents f211229 + c3dd02d commit 719a50a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 13 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,13 @@ name: CI
on: [pull_request, workflow_dispatch]

jobs:
# pre-commit:
# name: Run pre-commit
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v3
# - uses: pre-commit/[email protected]

test:
name: Tests for Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
python-version: [ "3.10" ]
fail-fast: false
# needs: pre-commit

steps:
- uses: actions/checkout@v3
Expand All @@ -31,6 +22,7 @@ jobs:
- name: Install dependencies
run: |
pip install -e .
pip install -r requirements-dev.txt
- name: Run tests
run: |
Expand Down
22 changes: 20 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,33 @@ python3 -m pip install -U pip wheel setuptools
```


## install the Jupyter kernel
## install

```bash
python3 -m pip install -e .
python3 -m bwyd.install
```


## uninstall the Jupyter kernel
## uninstall

```bash
./venv/bin/jupyter kernelspec uninstall bwyd
python3 -m pip uninstall bwyd
```


## set up the developer environment

```bash
python3 -m pip install -r requirements-dev.txt
```


## run unit tests

```bash
python3 -m pytest
```


Expand All @@ -44,3 +60,5 @@ python3 -m bwyd.install
- `demo.py`: Python demo app
- `examples/gnocchi.bwyd`: example Gnocchi recipe in Bwyd, as a script
- `examples/gnocchi.ipynb`: example Gnocchi recipe in Bwyd, as a Jupyter notebook

- `tests/*.py`: unit tests
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ include bwyd/kernel.json
include bwyd/*.py
include pyproject.toml
include requirements.txt
include requirements-dev.txt
include setup.py
include tests/*
prune .ipynb_checkpoints
prune docs
prune venv
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"

description = "The seed crazy idea behind the scenes here is to consider how human cooks behave somewhat like robots, following recipes as instructions."

dynamic = [
"description",
"version"
]

Expand Down
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deepdiff >= 6.7
pytest >= 8.0

0 comments on commit 719a50a

Please sign in to comment.