chore(deps): bump cryptography from 42.0.4 to 43.0.1 in /deployer #1581
Workflow file for this run
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
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 |