-
-
Notifications
You must be signed in to change notification settings - Fork 743
42 lines (38 loc) · 1.65 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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- { name: '3.11', python: '3.11', os: ubuntu-20.04, tox: py311, mongodb: '4.4', redis: '6' }
- { name: '3.10', python: '3.10', os: ubuntu-20.04, tox: py310, mongodb: '4.4', redis: '6' }
- { name: '3.9', python: '3.9', os: ubuntu-20.04, tox: py39, mongodb: '4.4', redis: '6' }
- { name: '3.8', python: '3.8', os: ubuntu-20.04, tox: py38, mongodb: '4.4', redis: '6' }
- { name: '3.7', python: '3.7', os: ubuntu-20.04, tox: py37, mongodb: '4.4', redis-version: '6' }
- { name: 'PyPy', python: 'pypy-3.7', os: ubuntu-20.04, tox: pypy37, mongodb: '4.4', redis: '6' }
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: ${{ matrix.mongodb }}
- uses: supercharge/redis-github-action@1.2.0
with:
redis-version: ${{ matrix.redis }}
- name: Install dependencies
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade virtualenv tox tox-gh-actions
- name: Start mongo ${{ matrix.mongodb-version }}
run: |
mongo eve_test --eval 'db.createUser({user:"test_user", pwd:"test_pw", roles:["readWrite"]});'
- name: Run tox targets for ${{ matrix.python }}
run: tox -e ${{ matrix.tox }}