Skip to content

Add a docker/dagger-based testing workflow, adopt PEP 517/621 #14

Add a docker/dagger-based testing workflow, adopt PEP 517/621

Add a docker/dagger-based testing workflow, adopt PEP 517/621 #14

Workflow file for this run

name: Dagger/Docker Testing Suite
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
inputs:
image_tag:
description: 'Image tag to use for the Docker image'
required: true
default: 'latest'
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install pre-commit
pre-commit install
- name: Run pre-commit
run: |
pre-commit run --all-files --show-diff-on-failure
integration:
name: Integration Tests
needs: lint
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Dagger testing
run: |
export BASE_IMAGE_TAG=${{ github.event.inputs.image_tag }}
pip install .[dagger]
python ./ci/dagger-pipeline.py