-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (41 loc) · 1.27 KB
/
build.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
name: install
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Print Python version
run: python --version
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: compas_wood_3_9_10
python-version: 3.9.10 # Specify Python version 3.9.10
auto-activate-base: false
channel-priority: strict
channels: conda-forge,defaults # This ensures conda-forge is used primarily, but defaults can also be accessed
- name: Install Wood-Nano with pip
run: |
echo "Installing Wood-Nano..."
pip install wood-nano
- name: Install dependencies with Conda
run: |
echo "Installing COMPAS and other dependencies..."
conda install compas -c conda-forge
- name: Install dependencies with pip
run: |
echo "Installing other dependencies from requirements.txt..."
pip install -r requirements.txt
echo "Installing the package in editable mode..."
pip install -e .