Skip to content

Chore(deps): Bump actions/upload-artifact from 5 to 6 #149

Chore(deps): Bump actions/upload-artifact from 5 to 6

Chore(deps): Bump actions/upload-artifact from 5 to 6 #149

Workflow file for this run

---
name: "Tests: CrateDB Cloud"
on:
pull_request:
push:
branches: [ main ]
# Allow job to be triggered manually.
workflow_dispatch:
# Run the job each night after CrateDB nightly has been published.
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"]
python-version: [
"3.14",
]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
UV_SYSTEM_PYTHON: true
# https://docs.github.com/en/actions/using-containerized-services/about-service-containers
services:
cratedb:
image: crate/crate:nightly
ports:
- 4200:4200
- 5432:5432
name: Python ${{ matrix.python-version }} on OS ${{ matrix.os }}
steps:
- name: Acquire sources
uses: actions/checkout@v6
- name: Install Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
cache-dependency-glob: |
pyproject.toml
cache-suffix: ${{ matrix.python-version }}
enable-cache: true
version: "latest"
- name: Set up project
run: |
# Install sponge.
sudo apt-get install moreutils
# Install package in editable mode.
uv pip install --editable='.[full,test,develop]'
- name: Run linter and software tests
env:
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }}
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
TEST_CRATEDB_CLOUD_API_KEY: ${{ secrets.TEST_CRATEDB_CLOUD_API_KEY }}
TEST_CRATEDB_CLOUD_API_SECRET: ${{ secrets.TEST_CRATEDB_CLOUD_API_SECRET }}
TEST_CRATEDB_CLOUD_ORGANIZATION_ID: ${{ secrets.TEST_CRATEDB_CLOUD_ORGANIZATION_ID }}
#TEST_CRATEDB_CLOUD_CLUSTER_NAME: ${{ secrets.TEST_CRATEDB_CLOUD_CLUSTER_NAME }}
TEST_CRATEDB_USERNAME: ${{ secrets.TEST_CRATEDB_USERNAME }}
TEST_CRATEDB_PASSWORD: ${{ secrets.TEST_CRATEDB_PASSWORD }}
run: |
poe check
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml
flags: cloud
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true