forked from ivre/ivre
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.8 KB
/
mongodb.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
56
57
58
59
60
61
62
63
64
# This file is part of IVRE.
# Copyright 2011 - 2024 Pierre LALET <[email protected]>
#
# IVRE is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# IVRE is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with IVRE. If not, see <http://www.gnu.org/licenses/>.
name: MongoDB tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
# https://docs.mongodb.com/drivers/pymongo/#compatibility
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
mongodb-version: ['3.6', '5.0']
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: pip install -r requirements-mongo.txt
- name: Install IVRE
uses: ./.github/actions/install
- run: mongo --eval 'db.version()'
- name: Initialize IVRE databases
run: for cli in ipinfo scancli view flowcli; do ivre $cli --init < /dev/null; done
- run: cd tests && python tests.py
env:
CI: true
DB: mongo
- run: cat /tmp/webserver.log
if: failure()