-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.build.yml
33 lines (29 loc) · 1.01 KB
/
.build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
image: archlinux
shell: true
sources:
- [email protected]:~brodie/portfolio
tasks:
- install-dependencies: |
# Install micromamba.
curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
./bin/micromamba shell -s posix hook >> ~/.buildenv
# Install Poetry.
curl -sSL https://install.python-poetry.org | python3 -
echo 'export PATH="/home/build/.local/bin:$PATH"' >> ~/.buildenv
# Source buildenv to access micromamba and Poetry in this session.
. ~/.buildenv
# Create the portfolio Mamba environment defined by environment.yml.
cd portfolio
micromamba create --file environment.yml --yes
# Install Python dependencies.
micromamba run --name portfolio poetry install
- test: |
cd portfolio
micromamba activate portfolio
git-crypt unlock ~/.git-crypt-key
pytest
secrets:
# SSH key.
- bc3fa43b-fd2d-4681-8191-603226c49d44
# ~/.git-crypt-key file.
- c011ad6d-818b-4c35-a073-93ea32658da4