Skip to content

Commit 16de63b

Browse files
committed
Add integration GH action
1 parent 1d38a64 commit 16de63b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/integration.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Integration
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
integration:
9+
name: Integration
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.10
16+
17+
- name: Cache dependencies
18+
uses: actions/cache@v2
19+
with:
20+
path: |
21+
~/.cache/pip
22+
~/.cache/pypoetry
23+
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}
24+
restore-keys: ${{ runner.os }}
25+
26+
- name: Install dependencies
27+
env:
28+
POETRY_VIRTUALENVS_CREATE: false
29+
run: >
30+
pip3 install poetry
31+
&& poetry install
32+
33+
- name: Format
34+
run: >
35+
black --check backend/manager
36+
37+
- name: Test
38+
env:
39+
DB: sqlite
40+
run: >
41+
python manage.py test

0 commit comments

Comments
 (0)