1+ name : ' Configure Build Environment'
2+ description : ' A reusable action that configures the build environment'
3+
4+ runs :
5+ using : ' composite'
6+ steps :
7+ - run : echo "**** Setup Python ****"
8+ - name : Setup Python
9+ uses : actions/setup-python@v6
10+ with :
11+ python-version : ${{ env.PYTHON_VERSION }}
12+ - run : python --version
13+
14+ - run : echo "**** Install Python based tooling ****"
15+ - name : Install Python based tooling
16+ run : pip install cfn-lint cfn-lint-serverless
17+
18+ - name : Setup NodeJS
19+ uses : actions/setup-node@v5
20+ with :
21+ node-version : ${{ env.NODE_VERSION }}
22+ - run : ' echo "NodeJS version: $(node --version)"'
23+
24+ - run : echo "**** Setup uv ****"
25+ - uses : astral-sh/setup-uv@v6
26+ - run : uv --version
27+
28+ - run : echo "**** Install application dependencies ****"
29+ - name : Install application dependencies
30+ run : |
31+ uv export --no-hashes --format=requirements-txt --output-file=src/requirements.txt
32+ uv sync --extra dev
33+ working-directory : ${{ gitea.workspace }}/${{ env.SERVICE_FOLDER }}
34+
35+ - run : echo "**** Install AWS CLI ****"
36+ - name : Install AWS CLI
37+ run : |
38+ curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
39+ unzip -q awscliv2.zip
40+ sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update > /dev/null 2>&1
41+ aws --version
42+
43+ - run : echo "**** Install SAM CLI ****"
44+ - name : Install SAM CLI
45+ uses : aws-actions/setup-sam@v2
46+ with :
47+ use-installer : true
48+ - run : sam --version
0 commit comments