Skip to content

Migrate from InfluxDB to Timescale/Postgres #41

Migrate from InfluxDB to Timescale/Postgres

Migrate from InfluxDB to Timescale/Postgres #41

Workflow file for this run

name: Slicks Telemetry Pipeline CI
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
workflow_dispatch:
jobs:
test-and-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Check docstring coverage
run: |
interrogate src/slicks -v
- name: Run tests with coverage
env:
INFLUX_URL: ${{ secrets.INFLUX_URL }}
INFLUX_TOKEN: ${{ secrets.INFLUX_TOKEN }}
INFLUX_ORG: ${{ secrets.INFLUX_ORG }}
INFLUX_DB: ${{ secrets.INFLUX_DB }}
run: |
pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
fail_ci_if_error: false
verbose: true
- name: Verify Documentation Example
continue-on-error: true
env:
CI: "true"
INFLUX_URL: ${{ secrets.INFLUX_URL }}
INFLUX_TOKEN: ${{ secrets.INFLUX_TOKEN }}
INFLUX_ORG: ${{ secrets.INFLUX_ORG }}
INFLUX_DB: ${{ secrets.INFLUX_DB }}
run: |
python examples/end_to_end.py