Skip to content

Commit 242bae0

Browse files
authored
Merge pull request #40 from nipreps/enh/pixi-on-gha
MAINT: Migrate GHA to pixi
2 parents 598f894 + bb81722 commit 242bae0

File tree

3 files changed

+388
-28
lines changed

3 files changed

+388
-28
lines changed

.github/workflows/book.yml

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
jobs:
1111
deploy-book:
1212
runs-on: ubuntu-latest
13-
env:
14-
ANTSPATH: /opt/ants
1513
steps:
1614
- uses: actions/cache@v4
1715
with:
@@ -31,37 +29,24 @@ jobs:
3129
texlive-fonts-extra \
3230
texlive-latex-extra \
3331
cm-super
34-
35-
- uses: actions/cache@v4
32+
- name: Checkout repository
33+
uses: actions/checkout@v5
3634
with:
37-
path: /opt/ants
38-
key: ants-v1
39-
restore-keys: |
40-
ants-v1
41-
- name: Install ANTS
42-
run: |
43-
if [[ ! -d "${ANTSPATH}" ]]; then
44-
sudo mkdir -p $ANTSPATH
45-
curl -sSL "https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz" | sudo tar -xzC $ANTSPATH --strip-components 1
46-
fi
47-
48-
- uses: actions/checkout@v4
49-
50-
# Install dependencies
51-
- name: Set up Python 3.11
52-
uses: actions/setup-python@v5
35+
fetch-depth: 200
36+
fetch-tags: true
37+
ref: ${{ github.ref }}
38+
- uses: prefix-dev/[email protected]
5339
with:
54-
python-version: 3.11
40+
pixi-version: v0.55.0
41+
run-install: false
42+
- run: pixi lock --check
5543

56-
- name: Install dependencies
57-
run: |
58-
pip install -r requirements.txt
44+
- name: Install project environment
45+
run: pixi install --locked
5946

6047
# Build the page
6148
- name: Build the book
62-
run: |
63-
export PATH=$ANTSPATH:$PATH
64-
jupyter-book build docs
49+
run: pixi run build-book
6550

6651
# Push the book's HTML to github-pages
6752
- name: GitHub Pages action

0 commit comments

Comments
 (0)