-
Notifications
You must be signed in to change notification settings - Fork 79
80 lines (70 loc) · 1.81 KB
/
dev_envs.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
name: "Dev env instructions"
on:
pull_request:
push:
branches: [latest]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/latest' }}
jobs:
nix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-14]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v16
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- run: nix run .# -- --version
- run: nix develop --command bash -c "tox -e py310"
pixi:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-14]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set up pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: v0.26.1
cache: true
frozen: true
- name: run tests for 3.10
shell: pixi run bash {0}
run: tox -e py310
mamba:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-14]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: cache conda
uses: actions/cache@v4
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
- name: setup conda
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d
with:
python-version: "3.10"
miniforge-version: latest
environment-file: dev.yml
activate-environment: sourmash_dev
auto-activate-base: false
- name: run tests for 3.10
shell: bash -l {0}
run: tox -e py310