-
Notifications
You must be signed in to change notification settings - Fork 58
71 lines (69 loc) · 2.11 KB
/
install-canary.yaml
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
name: canary installation
on:
schedule:
# Run the tests once every 24 hours to catch dependency problems early
- cron: '0 7 * * *'
push:
branches:
- install-canary
jobs:
canary-installs:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9']
defaults:
run:
shell: bash -l {0}
steps:
- name: Setup python ${{ matrix.python-version }} conda environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install activity-browser
run: |
conda create -y -n ab -c conda-forge activity-browser python=${{ matrix.python-version }}
- name: Environment info
run: |
conda activate ab
conda list
conda env export
conda env export -f env.yaml
- name: Upload final environment as artifact
uses: actions/upload-artifact@v2
with:
name: env-${{ matrix.os }}-${{ matrix.python-version }}
path: env.yaml
# also run install with micromamba instead of conda to have a timining comparison
canary-installs-mamba:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9']
defaults:
run:
shell: bash -l {0}
steps:
- name: Setup python ${{ matrix.python-version }} conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-name: ab
create-args: >-
python=${{ matrix.python-version }}
activity-browser
- name: Environment info
run: |
micromamba list
micromamba env export
micromamba env export > env.yaml
- name: Upload final environment as artifact
uses: actions/upload-artifact@v2
with:
name: env-${{ matrix.os }}-${{ matrix.python-version }}-mamba
path: env.yaml