CI #1701
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- +test-python3.11-arrow17.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.9.0 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_UPLOAD }} | |
packages_dir: result/dist |