Skip to content

add 3.12 to ver matrix #119

add 3.12 to ver matrix

add 3.12 to ver matrix #119

Workflow file for this run

name: Testing
on: [ push ]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}-latest
strategy:
max-parallel: 6
fail-fast: false
matrix:
os: [ "ubuntu", "macos" ]
python-version: [ "3.10", "3.11", "3.12" ]
defaults:
run:
shell: bash -l {0}
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup env
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
mamba-version: '*'
use-mamba: true
channels: conda-forge, defaults, bioconda
channel-priority: true
# activate-environment: lXt-dev
# environment-file: environment.yml
# use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install conda dependencies
run: mamba install -c bioconda -y mafft
- name: Install self with pip
run: pip install .
- name: Install test dependencies
run: mamba install -c conda-forge -y pytest pytest-cov coveralls
- name: Run tests
run: >
pytest
--cov=lXtractor
--cov-branch
--cov-report=term-missing
- name: Publish cov
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}