-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (59 loc) · 1.53 KB
/
ci.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
name: CI
on:
push:
branches: [main]
pull_request:
branches: ["*"]
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
PYTHONIOENCODING: utf-8
PYTHONUNBUFFERED: 1
MAMBA_NO_BANNER: 1
# ours
CACHE_EPOCH: 2
ATEST_RETRIES: 3
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install (conda)
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
environment-file: ./.binder/environment.yml
use-mamba: true
- name: setup (python)
run: doit lock:install:build_linux-64_lab4.0
- name: cache (node)
uses: actions/cache@v3
id: cache-node-modules
with:
path: |-
**/node_modules
build/.cache/yarn
key: |
${{ env.CACHE_EPOCH }}-ubuntu-node-modules-${{ hashFiles('yarn.lock') }}
- name: setup (js)
run: doit js-root:setup
- name: build
run: doit *:build:* || doit list
- name: build (retry)
run: doit *:build:*
- name: dist
run: doit *:dist:* || doit *:dist:*
- name: upload (dist)
uses: actions/upload-artifact@v3
with:
name: repub-${{ github.run_number }}-dist
path: ./dist
- name: Rename uncached conda packages
run: mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"