Skip to content

Workflow file for this run

name: Python Package using Conda
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v3
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
environment-file: environment.yml
activate-environment: test
- name: Conda info
shell: bash -l {0}
run: |
conda info
conda list
ls
- name: Print Python Path
shell: bash -l {0}
run: |
python -c "import sys; print(sys.path)"
python -c "import os; print(os.getcwd())"
ls
- name: Test with pytest
env:
PYTHONPATH: /home/runner/work/tokengrams/tokengrams
shell: bash -l {0}
run: |
ls
cargo build
maturin develop
ls
python -m pip install --user ./target/wheels/tokengrams*.whl
pytest