Skip to content

deleted invalid test_input.gbk file #2

deleted invalid test_input.gbk file

deleted invalid test_input.gbk file #2

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: microbiorust-py python tests
on:
push:
branches: [ "main" ]
paths:
- 'microbiorust-py/**'
pull_request:
branches: [ "main" ]
paths:
- 'microbiorust-py/**'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: 'pip'
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install maturin ruff pytest
pip install ./microbiorust-py
- name: Lint with ruff
run: |
# stop the build for critical errors (E9, F63, F7, F82 equivalents)
ruff check microbiorust-py/ --select E9,F63,F7,F82 --output-format=full
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
ruff check microbiorust-py/ --exit-zero --max-complexity=10 --line-length=127
- name: Test with pytest
run: |
pytest -v microbiorust-py/tests/