-
Notifications
You must be signed in to change notification settings - Fork 33
61 lines (50 loc) · 1.66 KB
/
main.yml
File metadata and controls
61 lines (50 loc) · 1.66 KB
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
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
jobs:
test:
name: "Python: ${{ matrix.python-version }}
SQLA: ${{ matrix.sqla-version }}
CrateDB: ${{ matrix.crate-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
crate-version: [nightly]
os: [ubuntu-latest]
sqla-version: ['1.1.18', '1.2.19', '1.3.23']
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
fail-fast: false
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Workaround needed for Python 3.5
python -m pip install --upgrade "setuptools>=31,<51"
pip install zc.buildout==2.13.4
# replace SQLAlchemy version
sed -ir 's/SQLAlchemy.*/SQLAlchemy = ${{ matrix.sqla-version }}/g' versions.cfg
# replace CrateDB version
if [ ${{ matrix.crate-version }} = "nightly" ]; then
sed -ir 's/releases/releases\/nightly/g' base.cfg
sed -ir 's/crate_server.*/crate_server = latest/g' versions.cfg
else
sed -ir 's/crate-/crate_/g' base.cfg
sed -ir 's/crate_server.*/crate_server = ${{ matrix.crate-version }}/g' versions.cfg
fi
buildout -n -c base.cfg
- name: Test
run: |
bin/flake8
bin/coverage run bin/test -vv1