-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (39 loc) · 1.02 KB
/
test_conda_env.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
name: Testing
on:
push:
branches:
- 'main'
jobs:
create-env:
name: Testing conda env (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create environment with conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: anaconda-client-env
miniconda-version: "latest"
environment-file: envs/conda_env.yaml
auto-activate-base: false
- name: Check conda
run: |
conda info
conda list
- name: Add Tulip
run: pip install tulip
- name: Add Gurobipy
run: pip install gurobipy
- name : Install Package for Testing
run : conda install pytest
- name : Run tests
run : pytest