-
Notifications
You must be signed in to change notification settings - Fork 85
87 lines (83 loc) · 2.71 KB
/
ci.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
name: CI
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
branches: [ master ]
schedule:
- cron: '47 6 * * *'
jobs:
pre-commit-checks:
name: "Lint using pre-commit"
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Run pre-commit checks
uses: pre-commit/action@v3.0.1
tests:
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
strategy:
fail-fast: false
matrix:
target:
- +test-python3.10-arrow7.x.x
- +test-python3.10-arrow8.x.x
- +test-python3.10-arrow9.x.x
- +test-python3.10-arrow10.x.x
- +test-python3.10-arrow11.x.x
- +test-python3.10-arrow12.x.x
- +test-python3.11-arrow7.x.x
- +test-python3.11-arrow8.x.x
- +test-python3.11-arrow9.x.x
- +test-python3.11-arrow10.x.x
- +test-python3.11-arrow11.x.x
- +test-python3.11-arrow12.x.x
- +test-python3.11-arrow13.x.x
- +test-python3.11-arrow14.x.x
- +test-python3.11-arrow15.x.x
- +test-python3.11-arrow16.x.x
experimental: [ false ]
upload: [false]
include:
- target: +test-python3.10-arrow12.x.x
experimental: false
upload: false
- target: +test-python3.10-arrow12.x.x
experimental: false
upload: false
- target: +test-python3.11-arrow14.x.x
experimental: false
upload: false
- target: +test-python3.11-arrow15.x.x
experimental: false
upload: true
- target: +test-python3.10-arrow-nightly
experimental: true
upload: false
- target: +test-python3.11-arrow-nightly
experimental: true
upload: false
steps:
- uses: actions/checkout@v4
- name: Download earthly 0.5.0
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.5.0/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
- name: Run build
run: earthly --allow-privileged ${{ matrix.target }}
continue-on-error: ${{ matrix.experimental }}
- name: Publish package
if: matrix.upload && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository == 'blue-yonder/turbodbc'
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
user: __token__
password: ${{ secrets.PYPI_UPLOAD }}
packages_dir: result/dist