forked from CBDD/rDock
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.49 KB
/
build_and_publish.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
name: Build package and publish
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
container: ["quay.io/pypa/manylinux2014_x86_64"]
defaults: # Needed for conda
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
uses-mamba: true
miniforge-variant: Mambaforge
channels: conda-forge,defaults
activate-environment: ../my-env
- name: Install yum deps
run: |
yum groupinstall -y "Development Tools"
yum install -y popt-devel cppunit-devel
- name: Build rDock package
shell: bash -l {0}
run: |
git config --global --add safe.directory '*'
conda install anaconda-client conda-build conda-verify
conda build conda-package/ --output-folder ./pkg/ --no-include-recipe --no-anaconda-upload -c conda-forge
- name: Test package
run: |
conda install -q -y ./pkg/linux-64/rdock-*.tar.bz2
conda install -q -y pytest
pytest ./tests/
- name: Upload to conda
shell: bash -l {0}
run: |
anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera ./pkg/*/rdock-*.tar.bz2