This repository was archived by the owner on Feb 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 720
59 lines (50 loc) · 1.29 KB
/
tests.yml
File metadata and controls
59 lines (50 loc) · 1.29 KB
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
name: Tests
on: [push, pull_request, workflow_dispatch]
env:
FORCE_COLOR: 1
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 1
matrix:
python-version: [
"2.7",
"3.7",
"3.8",
"3.9",
"3.10",
"3.11",
"pypy2.7",
]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U pytest pytest-cov mock
python -m pip install -r requirements.txt
- name: Tests
shell: bash
run: |
pytest --cov twitter --cov tests --cov-report=xml
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
coveralls_finish:
needs: tests
runs-on: ubuntu-latest
steps:
- name: Coveralls finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true