Skip to content

Update_testing

Update_testing #5

Workflow file for this run

name: Python Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install BEDTools (Linux)
run: |
sudo apt-get update
sudo apt-get install --fix-missing bedtools libmagickwand-dev
if: matrix.os == 'ubuntu-latest'
- name: Install BEDTools (macOS)
run: brew install bedtools imagemagick
if: matrix.os == 'macos-latest'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[tests]'
# Get pytest args from pyproject.toml
- name: Test with pytest
run: |
pytest
# Upload coverage report to Codecov
# Only upload coverage for the latest Python version on Ubuntu
#- name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v5
# if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: tanghaibao/jcvi