Skip to content

Fix wheel build

Fix wheel build #191

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
docker-build-and-test:
name: Docker Build and Test on ${{ matrix.platform }}
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Build and Push
uses: docker/build-push-action@v5
with:
context: .
file: ./ci/Dockerfile.test
platforms: ${{ matrix.platform }}
tags: cyvcf2:test
push: false
load: true
build-args: |
PYTHON_VERSION=slim
- name: Docker Run Tests
run: |
docker run --rm --platform ${{ matrix.platform }} cyvcf2:test pytest --cov cyvcf2 --cov-report term-missing
build:
name: Run tests on Python ${{ matrix.python-version }}
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
pip install -r requirements.txt
pip install pytest pytest-cov
git submodule update --init --recursive
cd htslib
autoheader && autoconf && autoreconf --install
./configure --enable-s3 --disable-lzma --disable-bz2
make
cd ..
CYTHONIZE=1 python setup.py build_ext -i
- name: Test
run: |
pytest --cov cyvcf2 --cov-report term-missing