Skip to content

Tests

Tests #385

Workflow file for this run

---
name: Tests
on:
pull_request:
push:
branches: [ main ]
# Allow job to be triggered manually.
workflow_dispatch:
# Invoke each night after CrateDB nightly was released.
schedule:
- cron: '0 3 * * *'
# Cancel in-progress jobs when pushing to the same branch.
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
"ubuntu-latest", # Intel
"macos-15-intel", # Intel
"macos-latest", # ARM
]
python-version: [
"3.8",
"3.14",
]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
name: Python ${{ matrix.python-version }} on OS ${{ matrix.os }}
steps:
- name: Acquire sources
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: true
cache-suffix: ${{ matrix.python-version }}
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Set up project
run: |
uv pip install --editable='.[develop,test]'
- name: Run linters and software tests
run: |
poe check
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true