Skip to content

Merge branch 'refactor-ptes-boosting' into feat-improve-ptx-excess-heat #34

Merge branch 'refactor-ptes-boosting' into feat-improve-ptx-excess-heat

Merge branch 'refactor-ptes-boosting' into feat-improve-ptx-excess-heat #34

name: Update locked envs
on:
push:
paths:
- pixi.toml
schedule:
- cron: "0 8 1,16 * *" # Bi-weekly
workflow_dispatch:
jobs:
update-locked-environment:
if: ${{ github.ref == 'refs/heads/master' }}
name: Update lockfiles
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v6
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.59.0
- name: Update lockfile
run: |
rm pixi.lock
pixi install --all
- name: Create new conda lock files
run: |
pixi workspace export conda-explicit-spec -e default envs
for f in envs/*_conda_spec*; do mv "$f" "${f/_conda_spec/.pin}"; done
- name: Create new conda environment file
run: |
pixi workspace export conda-environment -e default envs/environment.yaml -n pypsa-eur
- name: Upload artifacts
uses: actions/upload-artifact@v6
with:
name: lockfiles
path: |
pixi.lock
envs/
create-pull-request:
needs: update-locked-environment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Download all artifacts
uses: actions/download-artifact@v7
with:
name: lockfiles
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-locked-environment
title: "[github-actions.ci] Update locked envs"
body: |
Automatically generated PR to update the pixi lockfile.
**Note: Do not merge without manual test execution. Either update the branch to trigger tests, or use `workflow_dispatch` to run tests manually. Unlike standard PRs, tests will not run automatically.**
commit-message: "Update locked environment files for all platforms"