Bump gunicorn from 22.0.0 to 23.0.0 #861
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: CI | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
pull_request: | |
branches: | |
- develop | |
- master | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install pipenv | |
run: | | |
pip install pipenv | |
- name: Install dependencies | |
run: | | |
pipenv sync --dev --system | |
- name: Check format with black | |
run: | | |
# stop the build if there are black formatting errors | |
python -m black --check . | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install pipenv | |
run: | | |
pip install pipenv | |
- name: Install dependencies | |
run: | | |
pipenv sync --dev --system | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install pipenv | |
run: | | |
pip install pipenv | |
- name: Install dependencies | |
run: | | |
pipenv sync --dev --system | |
- name: Run mypy | |
run: | | |
python -m mypy . | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:14.5 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USER: "postgres" | |
POSTGRES_PASSWORD: "postgres" | |
POSTGRES_DB: "baracoda_test" | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 20s | |
--health-timeout 10s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install pipenv | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv | |
- name: Install dependencies | |
run: | | |
pipenv sync --dev --system | |
- name: Test with pytest | |
run: | | |
SETTINGS_PATH=config/test.py python -m pytest -vsx | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |