Skip to content

chore(deps): bump the dependencies group in /deployer with 2 updates #1619

chore(deps): bump the dependencies group in /deployer with 2 updates

chore(deps): bump the dependencies group in /deployer with 2 updates #1619

Workflow file for this run

name: Deployer testing
on:
pull_request:
paths:
- deployer/**
- .github/workflows/pr-deployer.yml
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: deployer/.venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }}
- name: Load cached .local
uses: actions/cache@v4
with:
path: ~/.local
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }}
- name: Install Python poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install deployer
run: |
cd deployer
poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Lint Python code
run: |
source deployer/.venv/bin/activate
flake8 deployer/src
black --check deployer/src
- name: Basic run of deployer
run: |
cd deployer
poetry run deployer --help
- name: Run deployer unit tests
run: |
cd deployer
poetry run pytest