-
Notifications
You must be signed in to change notification settings - Fork 7
111 lines (87 loc) · 2.75 KB
/
installation-from-remote.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Install from repository
on:
schedule:
- cron: '42 23 * * 3' # every Wednesday at 23:42
pull_request:
types: [opened, reopened, edited, synchronize]
workflow_dispatch:
jobs:
build-conda-on-windows:
name: ConFlowGen installation via conda on Windows
runs-on: windows-2019
env:
MPLBACKEND: Agg
steps:
- name: Skip Duplicate Actions
uses: fkirc/skip-duplicate-actions@v5
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: true
python-version: '3.10'
- name: Install ConFlowGen
run: |
conda info
conda update conda
conda info
conda create -n test-install-conflowgen -c conda-forge conflowgen pytest parameterized
- name: Prepare tests
run: |
conda activate test-install-conflowgen
conda install -c conda-forge pillow>=9.0
- name: Run tests
run: |
conda activate test-install-conflowgen
python -c "import conflowgen; print('ConFlowGen version: ', conflowgen.__version__)"
python -m pytest --pyargs conflowgen
build-conda-on-linux:
name: ConFlowGen installation via conda on Linux
runs-on: ubuntu-latest
env:
MPLBACKEND: Agg
steps:
- name: Skip Duplicate Actions
uses: fkirc/skip-duplicate-actions@v5
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: ""
- name: Install ConFlowGen
run: |
conda init bash
eval "$(conda shell.bash hook)"
conda info
conda update conda
conda info
conda activate base
conda create -n test-install-conflowgen -c conda-forge conflowgen pytest parameterized
- name: Run tests
run: |
eval "$(conda shell.bash hook)"
conda activate test-install-conflowgen
python -c "import conflowgen; print('ConFlowGen version: ', conflowgen.__version__)"
python -m pytest --pyargs conflowgen
build-pip:
strategy:
matrix:
os: [ubuntu-latest, windows-2019]
name: ConFlowGen installation via pip
runs-on: ${{ matrix.os }}
env:
MPLBACKEND: Agg
steps:
- name: Skip Duplicate Actions
uses: fkirc/skip-duplicate-actions@v5
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install ConFlowGen
run: |
python -m pip install conflowgen pytest parameterized
python -m pip show --verbose conflowgen
- name: Run tests
run: |
python -c "import conflowgen; print('ConFlowGen version: ', conflowgen.__version__)"
python -m pytest --pyargs conflowgen