-
Notifications
You must be signed in to change notification settings - Fork 14
62 lines (59 loc) · 1.59 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
54
55
56
57
58
59
60
61
62
name: build
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7"]
steps:
- uses: actions/checkout@v3
- name: Install most mimseq deps with conda
uses: mamba-org/setup-micromamba@v1
with:
environment-file: .github/environment.yml
cache-environment: false
cache-downloads: true
generate-run-shell: true
create-args: |
python=${{ matrix.python-version }}
- name: Install usearch
run: |
wget https://drive5.com/downloads/usearch10.0.240_i86linux32.gz
gunzip usearch10.0.240_i86linux32.gz
chmod +x usearch10.0.240_i86linux32
mv usearch10.0.240_i86linux32 /usr/local/bin/usearch
shell: micromamba-shell {0}
- name: Install mimseq
run: |
python -m pip install --upgrade pip setuptools
pip install .
shell: micromamba-shell {0}
- name: Test
run: |
pytest
shell: micromamba-shell {0}
- uses: actions/upload-artifact@v3
if: always()
with:
name: mimseq-output
path: "test_*"
build-status: # for branch protection rule
runs-on: ubuntu-latest
needs: [build]
if: always()
steps:
- name: Successful build
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failing build
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1