Skip to content

Commit

Permalink
Use directory name as mamba environment name
Browse files Browse the repository at this point in the history
  • Loading branch information
eidorb committed Nov 25, 2024
1 parent 384cd74 commit 11f26bb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ jobs:
# Install micromamba.
wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
# Install Poetry.
pipx install poetry~=1.8
# Create Mamba environment.
export MAMBA_ROOT_PREFIX=~/micromamba
eval "$(./bin/micromamba shell hook -s posix)"
micromamba create --file environment.yml --yes
micromamba activate brodie.id.au
./bin/micromamba create --file environment.yml --yes
./bin/micromamba activate "${PWD##*/}" # If dir name == environment name...
# Install Python package dependencies.
poetry install
Expand All @@ -46,9 +44,7 @@ jobs:
role-to-assume: arn:aws:iam::961672313229:role/Account-GithubOidcRole20798CD3-LZP3AHTIPJU2
aws-region: ap-southeast-2
- run: |
export MAMBA_ROOT_PREFIX=~/micromamba
eval "$(./bin/micromamba shell hook -s posix)"
micromamba activate brodie.id.au
MAMBA_ROOT_PREFIX=~/micromamba ./bin/micromamba activate "${PWD##*/}"
# Set timezone so that Sphinx uses local dates.
sudo timedatectl set-timezone Australia/Queensland
Expand Down

0 comments on commit 11f26bb

Please sign in to comment.