Skip to content

Add python initialization and dependency install to CI #8

Add python initialization and dependency install to CI

Add python initialization and dependency install to CI #8

Workflow file for this run

on:
push:
branches:
- dev
- test-ci
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
git config user.name github-actions
git config user.email [email protected]
- name: Cache conda
uses: actions/cache@v3
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 2
with:
path: ~/conda_pkgs_dir
key:
${{ matrix.os }}-python_${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('etc/example-environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
use-mamba: true
auto-update-conda: true
channels: conda-forge,
- name: Install dependencies
run: |
mamba env create -f environment.yml
- name: Generate teaching and solution branches
run: |
python ./workshop_git_tools/process_repo.py --commit --push