-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.71 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
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.11", "3.12", "3.13"]
architecture: [x64]
env:
OS : ${{ matrix.os }}
ARCHITECTURE: ${{ matrix.architecture }}
PYTHON : Python ${{ matrix.python }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version : ${{ matrix.python }}
architecture : ${{ matrix.architecture }}
- name: Install Python Requirements
run : |
python -m pip install --upgrade pip
python -m pip install poetry pytest-cov codecov pyYAML
- name: Install Package
run : poetry install
- name: Run Tests
run : |
poetry run pip install pytest-cov
poetry run pytest --cov=./ --cov-report=xml
- name: Upload Coverage (Ubuntu Python3.13)
uses: codecov/codecov-action@v5
with:
token : ${{ secrets.CODECOV_TOKEN }}
files : ./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.13