-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (53 loc) · 1.39 KB
/
build-test.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
name: "maturin build"
on:
pull_request:
push:
branches: [main]
jobs:
mamba:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: cache conda
uses: actions/cache@v4
env:
CACHE_NUMBER: 1
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
- name: cache rust
uses: Swatinem/rust-cache@v2
- name: setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.12
channels: conda-forge,bioconda
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
mamba-version: "*"
activate-environment: sourmash_dev
auto-activate-base: false
# use-only-tar-bz2: true
- run: conda info
- run: conda list
- run: conda config --show
- run: mamba search rust
- name: install dependencies
shell: bash -l {0}
run: mamba install rust==1.75.0
- name: install dependencies 2
shell: bash -l {0}
run: mamba install compilers maturin pytest pandas
- name: Run cargo fmt
run: cargo fmt --all -- --check --verbose
- name: build
shell: bash -l {0}
run: make
- name: test
shell: bash -l {0}
run: pytest