-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (42 loc) · 1.11 KB
/
ci.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
45
46
47
48
49
50
51
52
53
54
55
name: Build app
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
NODE_VERSION: 19.0.1
PYTHON_VERSION: 3.8.12
jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Dependencies
run: npm install
- name: Prisma generate
run: npm run prisma:generate
- name : Build project
run: npm run build
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r apps/shelter-ml/requirements.txt
- name: Lint with Ruff
run: |
pip install ruff
ruff --output-format=github .
continue-on-error: true
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
run: tox -e py