-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (48 loc) · 1.31 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
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Lint
run: |
python3.7 -m pip install nox
nox -s lint
test:
env:
ENDPOINT: http://localhost:8080/api/ws/v1
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
runs-on: ubuntu-latest
steps:
# Checkout and Setup Python
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
- if: matrix.python-version != '3.7'
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
# Setup Enterprise Search
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Run Enterprise Search
uses: elastic/elastic-github-actions/enterprise-search@master
with:
stack-version: 7.7.0
# Run tests
- name: Test
run: |
python3.7 -m pip install nox
nox -s test-${{ matrix.python-version }}