-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (45 loc) · 1.32 KB
/
test.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
name: Test Package
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7.15", "3.8.12", "3.9.12"]
steps:
- uses: actions/checkout@v3
# memcached
- uses: niden/actions-memcached@v7
# redis
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install libmemcached-dev
python -m pip install --upgrade pip wheel
pip install -r test-requirements.txt -U
- name: Lint with flake8
run: |
flake8 cachext --show-source --statistics
- name: Test with pytest
run: |
pytest tests --cov cachext
- name: Coveralls Parallel
uses: AndreMiras/coveralls-python-action@develop
with:
flag-name: "Integration Test - ${{ matrix.python-version }}"
parallel: true
converalls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true