-
Notifications
You must be signed in to change notification settings - Fork 43
64 lines (52 loc) · 1.87 KB
/
v0.6.0_install-and-build-packages.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Install and Build Specified Packages (Package Manager)
on:
push:
jobs:
test:
env:
UNIQUE_VENV_PATH: "${{ github.workspace }}/.venv_core_${{ github.run_id }}"
runs-on: self-hosted
steps:
- name: Check Out Repository
uses: actions/checkout@v4
- name: Set Up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Create and Activate Virtual Environment
run: |
python -m venv $UNIQUE_VENV_PATH
source $UNIQUE_VENV_PATH/bin/activate
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
- name: Install toml
run: |
source $UNIQUE_VENV_PATH/bin/activate
pip install toml
- name: Generate poetry.lock
run: |
source $UNIQUE_VENV_PATH/bin/activate
python scripts/manage_packages.py poetry-lock --directory pkgs
- name: Install Dependencies
run: |
source $UNIQUE_VENV_PATH/bin/activate
python scripts/manage_packages.py poetry-install --directory pkgs --all-extras --dev
- name: Extract Path Dependencies
id: extract-paths
run: |
source $UNIQUE_VENV_PATH/bin/activate
python scripts/manage_packages.py extract-path-dependencies --directory pkgs
- name: Recursive Build
run: |
source $UNIQUE_VENV_PATH/bin/activate
python scripts/manage_packages.py recursive-build --directory pkgs
- name: Show Installed Packages
run: |
source $UNIQUE_VENV_PATH/bin/activate
python scripts/manage_packages.py show-pip-freeze
- name: Clean Up Virtual Environment
if: always()
run: |
rm -rf ${{ env.UNIQUE_VENV_PATH }}