-
Notifications
You must be signed in to change notification settings - Fork 51
53 lines (50 loc) · 1.23 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Test
on:
pull_request:
push:
jobs:
testLinux:
name: Test Conda Linux
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: foo
environment-file: .environmentLinux.yaml
python-version: 3.9
auto-activate-base: false
- run: |
pip install .
pytest pyBigWigTest/test.py
test-builds:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install build prerequisites
run: |
python -m pip install --upgrade build numpy
- name: Install cibuildwheel
run: |
python -m pip install --upgrade cibuildwheel
- name: Build wheel(s)
run: |
python -m cibuildwheel --output-dir wheelhouse
- name: Build sdist
run: |
python -m build --sdist
- uses: actions/upload-artifact@v3
with:
name: pyBigWig-build
path: |
wheelhouse/*
dist/pyBigWig*.tar.gz