Debian Codegraph @

.github/workflows/runtests.yml

raw
1 name: Run Tests
2 on: [push, pull_request]
3 jobs:
4 build:
5 name: Run tests
6 strategy:
7 matrix:
8 os: [ubuntu-latest]
9 python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
10 runs-on: ${{ matrix.os }}
11 steps:
12 - uses: actions/checkout@v2
13 - name: Install locales
14 run: sudo apt-get install -y locales language-pack-it
15 - name: Set up Python ${{ matrix.python-version }}
16 uses: actions/setup-python@v2
17 with:
18 python-version: ${{ matrix.python-version }}
19 - name: Install dependencies
20 run: |
21 python -m pip install --upgrade pip
22 pip install -U --upgrade-strategy=eager --pre -e .[testsuite]
23 - name: Start memcached
24 uses: niden/actions-memcached@v7
25 - name: Start Redis
26 uses: supercharge/[email protected]
27 - name: Start MongoDB
28 uses: supercharge/[email protected]
29 - uses: vishnudxb/[email protected]
30 with:
31 master1-port: 5000
32 master2-port: 5001
33 master3-port: 5002
34 slave1-port: 5003
35 slave2-port: 5004
36 slave3-port: 5005
37 sleep-duration: 5
38 - name: Test with pytest
39 run: |
40 pytest -vv