update dev doc and gh actions
This commit is contained in:
parent
e31e7f169a
commit
6decb37ae3
3 changed files with 8 additions and 9 deletions
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
|
@ -37,8 +37,8 @@ jobs:
|
|||
cache: pip
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -r requirements-dev.txt
|
||||
python -m pip install -r requirements.txt
|
||||
python -m pip install -r requirements-dev.lock
|
||||
python -m pip install -r requirements.lock
|
||||
- name: Run pyright
|
||||
run: |
|
||||
python -m pyright
|
||||
|
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -42,7 +42,7 @@ jobs:
|
|||
cache: pip
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements.lock
|
||||
- name: Run Tests
|
||||
env:
|
||||
NEODB_DB_URL: postgres://testuser:testpass@127.0.0.1/test_neodb
|
||||
|
|
|
@ -21,13 +21,12 @@ cd neodb
|
|||
git submodule update --init
|
||||
```
|
||||
|
||||
Create and activate a Python virtual environment, optional but recommended.
|
||||
|
||||
Install development related packages and pre-commit hooks:
|
||||
Install [rye](http://rye.astral.sh) package manager, packages and pre-commit hooks:
|
||||
```
|
||||
python3 -m pip install -r requirements.txt
|
||||
python3 -m pip install -r requirements-dev.txt
|
||||
python3 -m pre_commit install
|
||||
curl -sSf https://rye.astral.sh/get | bash
|
||||
rye sync
|
||||
. .venv/bin/activate
|
||||
pre-commit install
|
||||
```
|
||||
|
||||
To develop Takahe, install requirements(-dev) and pre-commit hooks for `neodb-takahe` project as well, preferably using a different virtual environment.
|
||||
|
|
Loading…
Add table
Reference in a new issue