-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (83 loc) · 2.54 KB
/
test-all.yaml
File metadata and controls
91 lines (83 loc) · 2.54 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# All tests — run this only on merges to main or where a specific label is set.
name: test-all
on:
push:
branches:
- main
# Called by pull-request when specifically requested
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-rust:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: windows-latest
- os: macos-latest
- os: ubuntu-latest
target: "wasm32-unknown-unknown"
target_option: "--target=wasm32-unknown-unknown"
steps:
- name: 📂 Checkout code
uses: actions/checkout@v3
- uses: ./.github/actions/test-rust
with:
target: ${{ matrix.target }}
target_option: ${{ matrix.target_option }}
test-python:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: 📂 Checkout code
uses: actions/checkout@v3
- uses: ./.github/actions/test-python
test-java:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# TODO: enable for windows
os: [ubuntu-latest, macos-latest]
# Java test is simple enough that it's not worth splitting out into a
# separate action. These three lines is copied to test-java, which runs on
# any java change.
steps:
- name: 📂 Checkout code
uses: actions/checkout@v3
- working-directory: prql-java/java/
run: ./mvnw test
measure-code-cov:
runs-on: ubuntu-latest
# Currently this runs `cargo clean` which makes the run taking 4 min. TODO:
# see whether `skip_clean` is reliable and then add this job to every
# commit.
steps:
- name: 📂 Checkout code
uses: actions/checkout@v3
- name: 💰 Cache
uses: Swatinem/rust-cache@v1
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
# TODO: move this exclusion to a config file.
args: "--workspace --exclude prql-python -- --test-threads 1"
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
- name: Upload code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: cobertura.xml
time-compilation:
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout code
uses: actions/checkout@v3
- uses: ./.github/actions/time-compilation
with:
use_cache: true