Skip to content

Commit

Permalink
install: force conda install with hard versions
Browse files Browse the repository at this point in the history
  • Loading branch information
asoplata committed Jan 30, 2025
1 parent 6872a81 commit 27238b5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
name: Build and Deploy
name: Build and Deploy (TESTING)

# All commented-out lines will need to be un-commented before merging. These are currently commented
# out for debugging and testing during the actual PR, which, obviously, involves changes to this
# workflow itself.

on:
# push:
# branches:
# - main
push:
branches:
- main
branches: ['**']
pull_request:
branches: ['**']

jobs:
build:
Expand All @@ -12,24 +20,17 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set Up Python
uses: actions/setup-python@v4
- name: Create and activate conda environment
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.x'

- name: Install Pandoc
run: sudo apt-get update && sudo apt-get install -y pandoc

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
activate-environment: website-redesign
environment-file: environment.yml

- name: Build Website
run: python build.py

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: .
11 changes: 8 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: website-redesign
channels:
- conda-forge
dependencies:
- python=3.12
- beautifulsoup4
- pip
- pypandoc
- beautifulsoup4==4.12.3
- pandoc==3.6.2
- pip==25.0
- pypandoc==1.15
- pip:
- hnn_core[dev]==0.4rc4

2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

0 comments on commit 27238b5

Please sign in to comment.