-
Notifications
You must be signed in to change notification settings - Fork 8
57 lines (46 loc) · 1.14 KB
/
run_tests.yaml
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
name: Tests with Spark
on:
push:
branches:
- dev-tests
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- '3.10'
- '3.11'
spark:
- 3.4.0
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: temurin
- uses: vemonet/setup-spark@v1
with:
spark-version: ${{ matrix.spark }}
hadoop-version: '3'
- run: spark-submit --version
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install pytest pytest-cov
# - name: Run tests with pytest
# run: |
# pytest --cov=voluseg --cov-report=term-missing
# - name: Upload coverage report
# if: success()
# uses: actions/upload-artifact@v3
# with:
# name: coverage-report
# path: htmlcov/