Update docs.yml #504
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |