-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (47 loc) · 1.21 KB
/
install.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
name: Check Extra Install
on:
push:
branches:
- '**'
create:
branches:
- 'master'
tags:
- '**'
jobs:
pip_install:
name: Check extra install with pip
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Pip install extra_libraries
run: pip install -r extra_libraries.txt
conda_install:
name: Check extra install with conda
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
mamba-version: "*"
- name: Mamba create environment.yml
run: mamba env create -f environment.yml -n test_env
check_same_deps:
name: Check pip and conda install same env
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install pyyaml
- name: Check same requirements
run: python .github/workflows/check_deps.py