Skip to content

Bump certifi from 2022.12.7 to 2023.7.22 (#41) #52

Bump certifi from 2022.12.7 to 2023.7.22 (#41)

Bump certifi from 2022.12.7 to 2023.7.22 (#41) #52

name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true
- name: Cache Poetry virtualenv
uses: actions/cache@v1
id: cache
with:
path: .virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
run: poetry install
if: steps.cache.outputs.cache-hit != 'true'
- name: Configure Environment
run: |
cp .env.example .env
poetry run flask db upgrade
- name: Code Quality
run: poetry run black . --check
- name: Test with pytest
run: poetry run pytest .