forked from keitaroyam/servalcat
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (76 loc) · 2.09 KB
/
ci.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on: [push, pull_request]
jobs:
build_wheels:
name: Wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-12, macos-14, windows-2022]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: 'cp*'
CIBW_SKIP: 'cp36* *musllinux* *_i686 *-win32'
CIBW_TEST_SKIP: 'cp38*_arm64'
- run: ls -lh wheelhouse
shell: bash
- uses: actions/upload-artifact@v4
with:
name: wheels2-${{ matrix.os }}
path: wheelhouse/*.whl
merge:
runs-on: ubuntu-latest
needs: build_wheels
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: wheels2
pattern: wheels2-*
delete-merged: true
standard:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-12, macos-13, macos-14, windows-2022]
py: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
exclude:
- os: macos-14
py: '3.7'
- os: ubuntu-24.04
py: '3.7'
name: ${{ matrix.os }} py${{ matrix.py }}
runs-on: ${{ matrix.os }}
needs: merge
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: checkout monomers
uses: actions/checkout@v4
with:
repository: MRC-LMB-ComputationalStructuralBiology/monomers
path: monomers
- uses: actions/download-artifact@v4
with:
name: wheels2
path: wheels2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
- name: Python Setup
run: python -m pip install --find-links=wheels2 servalcat
- name: Python Tests
continue-on-error: true
env:
CLIBD_MON: ${{runner.workspace}}/servalcat/monomers
run: |
cd tests/
python3 -m unittest discover -v -s .
cd ..