-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 878 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
container: python:3.10-slim
env:
ARQ_BACKEND: redis://redis:6379/0
SQLALCHEMY_DATABASE_URI: postgresql+asyncpg://postgres:password@postgres:5432/postgres
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: password
redis:
image: redis
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
apt-get update && apt-get install -y gcc python3-dev --no-install-recommends
pip install --upgrade pip
pip install --no-cache-dir pipenv==2021.11.23
pipenv install --dev --system
- name: Lint
run: cd src && flake8 .
- name: Test
run: cd src && pytest