forked from dcolinmorgan/cu-cat
-
Notifications
You must be signed in to change notification settings - Fork 1
119 lines (114 loc) · 3.71 KB
/
testing.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: 'build'
on:
push:
branches:
- "master"
pull_request:
branches:
- '*'
schedule:
- cron: "30 2 * * *"
branches:
- "master"
jobs:
# check_skip:
# runs-on: ubuntu-latest
# outputs:
# skip: ${{ steps.result_step.outputs.ci-skip }}
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - id: result_step
# uses: mstachniuk/ci-skip@master
# with:
# commit-filter: '[skip ci];[ci skip];[skip github]'
# commit-filter-separator: ';'
latest:
# needs: check_skip
if: ${{ needs.check_skip.outputs.skip == 'false' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.10", "3.11"]
# Install the min or latest dependencies for cu_cat
# as defined in setup.cfg at [options.extra_require].
#
# Installing these extra dependencies will overwrite the already
# installed version defined at install_requires.
dependencies-version-type: ["minimal", "latest"]
include:
- os: "ubuntu-latest"
os-name: "Ubuntu"
- os: "macos-latest"
os-name: "MacOS"
- os: "windows-latest"
os-name: "Windows"
- dependencies-version: "dev"
- dependencies-version: "dev, pyarrow"
python-version: "3.11"
- dependencies-version: "dev, polars"
python-version: "3.11"
- dependencies-version: "dev, min-py310"
python-version: "3.10"
dependencies-version-type: "minimal"
name: ${{ matrix.os-name }} with Python ${{ matrix.python-version }} and ${{ matrix.dependencies-version-type }} dependencies
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
name: 'Setup python'
- shell: bash {0}
run: ./build_tools/github/install.sh
name: 'Install cu_cat'
env:
DEPS_VERSION: ${{ matrix.dependencies-version }}
- shell: bash {0}
run: |
cp $GITHUB_WORKSPACE/pyproject.toml .
$GITHUB_WORKSPACE/build_tools/github/test.sh
working-directory: ${{ runner.temp }}
name: 'Run tests'
# - uses: codecov/codecov-action@v3
# with:
# directory: ${{ runner.temp }}
# verbose: true
# if: success()
# name: 'Upload coverage to CodeCov'
run_nightly:
runs-on: ubuntu-latest
outputs:
run: ${{ github.event_name == 'schedule' || contains(steps.get_head_commit_message.outputs.COMMIT_MSG, '[deps nightly]') }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- id: get_head_commit_message
name: get head commit message
run: echo "COMMIT_MSG=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT"
nightly:
needs: run_nightly
if: ${{ needs.run_nightly.outputs.run == 'true' }}
runs-on: ubuntu-latest
name: test against nighlty dependencies
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
name: 'Setup python'
- shell: bash {0}
run: ./build_tools/github/install.sh
name: 'Install cu_cat'
env:
INSTALL_NIGHTLY: "true"
DEPS_VERSION: "dev"
- shell: bash {0}
run: ./build_tools/github/test.sh
name: 'Run tests'