Skip to content

Blogbuildtime #805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 8 additions & 25 deletions .github/workflows/blog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,24 @@ jobs:
defaults:
run:
shell: bash -l {0}
env:
RETICULATE_PYTHON: /usr/share/miniconda3/envs/www-main/bin/python
steps:
- uses: actions/checkout@v3
with:
# submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 3
- uses: conda-incubator/setup-miniconda@v2
- uses: mamba-org/provision-with-micromamba@v15
with:
python-version: 3.9
activate-environment: www-main
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
environment-file: environment.yml
micromamba-version: latest
- name: Get Date
id: get-date
run: echo "name=today::$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash
- name: Cache Conda env
uses: actions/cache@v3
with:
path: ${{ env.CONDA }}/envs
key: conda-${{ runner.os }}--${{ runner.arch }}--${{ steps.get-date.outputs.today }}-${{ hashFiles('environment.yml') }}-${{ env.CACHE_NUMBER }}
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
id: cache
- name: Update environment
run: mamba env update -n www-main -f environment.yml
if: steps.cache.outputs.cache-hit != 'true'
- name: Conda info
- name: Create environment
run: micromamba env create -n www-main-micromamba -f environment.yml
- name: micromamba info
run: |
conda info
conda list
micromamba info
micromamba list
- name: Install R dependencies
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down