-
-
Notifications
You must be signed in to change notification settings - Fork 126
44 lines (42 loc) · 1.2 KB
/
pythonapp.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
38
39
40
41
42
43
44
name: Test Application
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
path: ~/test
- name: Install dependencies
run: |
make init
- name: Test with pytest
env:
MAIL_HOST: ${{ github.secrets.MAIL_HOST }}
MAIL_PORT: ${{ github.secrets.MAIL_PORT }}
MAIL_USERNAME: ${{ github.secrets.MAIL_USERNAME }}
MAIL_PASSWORD: ${{ github.secrets.MAIL_PASSWORD }}
DB_CONFIG_PATH: tests/integrations/config/database
run: |
make ci
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v3
- name: Set up latest Python 3.X
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install Flake8
run: |
pip install flake8
- name: Lint
run: make lint