Skip to content

chore: Add basic CI

chore: Add basic CI #1

Workflow file for this run

name: Run tests
on:
pull_request:
push:
branches:
- main
- feat/**
schedule:
- cron: "53 0 * * *" # Daily at 00:53 UTC
workflow_dispatch:
jobs:
lint:
name: Lint
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
unit-test:
name: Unit test charm
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tox & poetry
run: |
pipx install tox
pipx install poetry
- name: Set up python environment
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'poetry'
- name: Run tests
run: tox run -e unit