Bump cryptography from 36.0.1 to 41.0.6 in /backend #27
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: BAS Dev | |
on: | |
push: | |
branches: [ development ] | |
pull_request: | |
branches: [ development ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_DB: bas | |
POSTGRES_USER: bas | |
POSTGRES_PASSWORD: bas | |
ports: | |
- 5432:5432 | |
# Set health checks to wait until postgres has started | |
options: | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
echo "PYTHON_VERSION=$(cat backend/.python-version)" >> $GITHUB_ENV | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.1.12 | |
virtualenvs-create: true | |
virtualenvs-in-project: false | |
virtualenvs-path: backend/.virtualenvs | |
- name: Cache Poetry virtualenv | |
uses: actions/cache@v2 | |
id: cache-virtualenv | |
with: | |
path: backend/.virtualenvs | |
key: ${{ runner.os }}-${{ env.PYTHON_VERSION }}-venv-${{ hashFiles('backend/poetry.lock') }} | |
- name: Install virtual environment | |
if: steps.cache-virtualenv.outputs.cache-hit != 'true' | |
run: | | |
cd backend | |
poetry install | |
- name: Format | |
run: make format | |
- name: Run unit tests | |
run: make unit-test | |