-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.89 KB
/
wikidspark.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
name: WikidSpark
on: [push]
jobs:
run:
name: ${{ matrix.os }} ${{ matrix.architecture}} Python v${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest] #, windows-latest]
python: [3.6, 3.7, 3.8]
architecture: [x64]
#include:
# - os: windows-latest
# architecture: x86
env:
OS : ${{ matrix.os }}
ARCHITECTURE: ${{ matrix.architecture }}
PYTHON : Python ${{ matrix.python }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version : ${{ matrix.python }}
architecture : ${{ matrix.architecture }}
- name: Install Python Requirements
run : |
python -m pip install --upgrade pip
python -m pip install --user poetry pytest-cov codecov pyYAML
- name: Install Package
run : python -m poetry install
- name: Run Tests
run : |
python -c "import time; time.sleep(2)"
python -m poetry add pytest-cov
python -m poetry run pytest --cov=./ --cov-report=xml
- name: Upload Coverage (Ubuntu Python3.8)
uses: codecov/codecov-action@v1
with:
token : ${{secrets.CODECOV_TOKEN}}
file : ./coverage.xml
directory : ./coverage/reports
flags : unittests
fail_ci_if_error: true
env_vars: OS,PYTHON,ARCHITECTURE
name : codecov-umbrella
if: matrix.os == 'ubuntu-latest' && matrix.python == 3.8