chore(deps): update python:3.12-alpine3.20 docker digest to bb94273 #1665
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
name: Continuous Integration | |
jobs: | |
test: | |
name: Continuous integration tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8.0 | |
with: | |
python-version: '3.12' | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install poetry | |
env: | |
POETRY_VERSION: "1.7.1" | |
run: pip install poetry==${POETRY_VERSION} && poetry --version | |
- name: Install dependencies | |
run: poetry install | |
- name: Run tests | |
run: poetry run make test | |
- name: Get python version | |
run: | | |
python_version=$(python -V | cut -d' ' -f2) | |
echo "python_version=${python_version}" >> $GITHUB_ENV | |
- name: Copy site-packages in workspace | |
working-directory: ${{ github.workspace }} | |
shell: bash | |
run: | | |
mkdir -p "${{ github.workspace }}/env/" && cp -fR $(poetry env list | poetry env info -p)/lib/python3.12/site-packages "${{ github.workspace }}/env/" | |
- name: Install development .env file | |
working-directory: ${{ github.workspace }} | |
shell: bash | |
run: | | |
cp -f .env.example .env | |
- name: Checks for new endpoints against AWS WAF rules | |
uses: cds-snc/notification-utils/.github/actions/waffles@f8de0602f5aa34ef1e62691c94b7d0764568f423 # 52.0.16 | |
with: | |
app-loc: '/github/workspace' | |
app-libs: '/github/workspace/env/site-packages' | |
flask-mod: 'application' | |
flask-prop: 'application' | |
base-url: 'https://api.document.staging.notification.cdssandbox.xyz' |