Skip to content

Commit eb16aff

Browse files
committed
test new ci
1 parent e11c643 commit eb16aff

File tree

3 files changed

+98
-219
lines changed

3 files changed

+98
-219
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_wheels:
7+
name: Build wheels on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os:
12+
[
13+
ubuntu-latest,
14+
ubuntu-24.04-arm,
15+
windows-latest,
16+
macos-13,
17+
macos-latest,
18+
]
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-python@v5
24+
25+
- name: Install cibuildwheel
26+
run: python -m pip install cibuildwheel==2.23.0
27+
28+
- name: Build wheels
29+
run: python -m cibuildwheel --output-dir wheelhouse
30+
env:
31+
LOCAL_PDB_REPO: ./tests/pdb/
32+
SKIP_SPEED_TESTS: True
33+
34+
# - uses: actions/upload-artifact@v4
35+
# with:
36+
# name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
37+
# path: ./wheelhouse/*.whl

.github/workflows/test.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Test code and publish package
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: ["ubuntu-latest", "macos-latest", "macos-13", "windows-2019"]
13+
python-version: ["3.9", "3.10", "3.11", "3.12"]
14+
15+
defaults: # Needed for conda
16+
run:
17+
shell: bash -l {0}
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
lfs: true
23+
submodules: true
24+
25+
- uses: conda-incubator/setup-miniconda@v3
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
channels: acellera,conda-forge,defaults
29+
30+
- name: Lint with flake8
31+
run: |
32+
pip install flake8 coverage
33+
# stop the build if there are Python syntax errors or undefined names
34+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37+
38+
# - name: Install cdpkit
39+
# # if: ${{ matrix.os == 'ubuntu-latest' }}
40+
# run: |
41+
# # for testing CDPKit SmallMol
42+
# pip install CDPKit
43+
44+
- name: Install moleculekit
45+
run: |
46+
pip install build pytest pytest-xdist
47+
python -m build
48+
pip install dist/moleculekit-*.whl
49+
50+
- name: List conda environment
51+
run: conda list
52+
53+
- name: Test
54+
run: |
55+
pytest -n auto ./tests/ --durations=20
56+
env:
57+
LOCAL_PDB_REPO: ./tests/pdb/
58+
SKIP_SPEED_TESTS: True
59+
60+
# - name: Upload coverage to Codecov
61+
# uses: codecov/codecov-action@v3

.github/workflows/test_and_publish.yml

Lines changed: 0 additions & 219 deletions
This file was deleted.

0 commit comments

Comments
 (0)