-
Notifications
You must be signed in to change notification settings - Fork 9
62 lines (60 loc) · 1.67 KB
/
pip_installation.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
on:
push:
branches: [ main ]
pull_request:
branches: [ main, development ]
workflow_dispatch:
name: Default installation and tests
jobs:
stable_installation:
name: Test stable pip installation on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -l {0}
run: conda info
- name: Test pip installation with all stable dependencies
shell: bash -l {0}
run: |
cd misc
. ./stable_pip_install.sh
- name: Unittests
shell: bash -l {0}
run: |
conda activate alphabase
nbdev_test
conda deactivate
loose_installation:
name: Test loose pip installation on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -l {0}
run: conda info
- name: Test pip installation with all loose dependencies
shell: bash -l {0}
run: |
cd misc
. ./loose_pip_install.sh
- name: Unittests
shell: bash -l {0}
run: |
conda activate alphabase
nbdev_test
conda deactivate