Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Update README.md

Update README.md #45

name: Python query tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
RUST_LOG: debug
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r tests/requirements.txt
working-directory: ./py_chrontext
- name: Set up nightly rust
run: |
rustup toolchain install nightly-2023-08-01
rustup default nightly-2023-08-01
- name: Build install package
run: |
source .venv/bin/activate
maturin develop
working-directory: ./py_chrontext
- name: pytest
run: |
source ../.venv/bin/activate
pytest
working-directory: ./py_chrontext/tests