Skip to content

Commit

Permalink
wip - does this work?
Browse files Browse the repository at this point in the history
  • Loading branch information
eidorb committed Nov 25, 2024
1 parent 18cb17d commit 14d037a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,27 @@ jobs:
- id: cache
uses: actions/cache@v4
with:
# Use contents of Mamba environment file, NPM lock file and Poetry lock file as cache key.
# Use Mamba environment file, NPM lock file and Poetry lock file as cache key.
key: ${{ hashFiles('environment.yml', 'package-lock.json', 'poetry.lock') }}
# Cache micromamba binary, environments and pipx installs.
path: |
./bin/micromamba
~/micromamba/envs
./local/bin
~/micromamba
~/.local/pipx
- if: steps.cache.outputs.cache-hit != 'true'
run: |
# Install micromamba.
wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
# Install latest micromamba (https://github.com/mamba-org/micromamba-releases/releases).
VERSION=2.0.3-0 INIT_YES=nope CONDA_FORGE_YES=nah "${SHELL}" <(curl -L micro.mamba.pm/install.sh)
ls -la ~/.local/bin # TODO: remove
# Install Poetry.
pipx install poetry~=1.8
# Create Mamba environment.
export MAMBA_ROOT_PREFIX=~/micromamba
# export MAMBA_ROOT_PREFIX=~/micromamba # TODO: remove
eval "$(./bin/micromamba shell hook -s posix)"
./bin/micromamba create --file environment.yml --yes
./bin/micromamba activate "${PWD##*/}" # If dir name == environment name...
micromamba create --file environment.yml --yes
micromamba activate "${PWD##*/}" # If dir name == environment name...
# Install Python package dependencies.
poetry install
Expand All @@ -45,9 +46,9 @@ jobs:
role-to-assume: arn:aws:iam::961672313229:role/Account-GithubOidcRole20798CD3-LZP3AHTIPJU2
aws-region: ap-southeast-2
- run: |
export MAMBA_ROOT_PREFIX=~/micromamba
# export MAMBA_ROOT_PREFIX=~/micromamba # TODO: remove
eval "$(./bin/micromamba shell hook -s posix)"
./bin/micromamba activate "${PWD##*/}"
micromamba activate "${PWD##*/}"
# Set timezone so that Sphinx uses local dates.
sudo timedatectl set-timezone Australia/Queensland
Expand Down

0 comments on commit 14d037a

Please sign in to comment.