-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 1.58 KB
/
test.yaml
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
56
57
58
59
60
61
62
63
64
65
66
name: Test
on:
push:
env:
ZIPLINE_URL: http://localhost:3000/
jobs:
test:
name: Test
timeout-minutes: 5
if: ${{ !contains(github.event.head_commit.message, '#noci') }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DATABASE: postgres
ports:
- 5432:5432
zipline:
image: ghcr.io/diced/zipline:latest
env:
DEBUG: true
CORE_PORT: 3000
CORE_RETURN_HTTPS: false
CORE_SECRET: H8Y9lSs48w3HwOgFfpaF0G
CORE_DATABASE_URL: postgres://postgres:postgres@postgres/postgres
ports:
- 3000:3000
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Setup Python ${{ matrix.version }}"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: "Pip Install ${{ matrix.version }}"
run: |
python -m pip install -U pip
python -m pip install -U flake8
python -m pip install -Ur requirements.txt
- name: "Flake8 ${{ matrix.version }}"
run: flake8 zipline.py
- name: "Build ${{ matrix.version }}"
run: python -m pip install -e .
- name: "Test ${{ matrix.version }}"
run: |
export ZIPLINE_TOKEN=$(python3 get_test_token.py)
zipline zipline.py