Skip to content

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

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

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

Workflow file for this run

name: Dagger/Docker Testing Suite
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- 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.8]
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
with:
context: .
file: "Dockerfile"
build-args: |
PYTHON_VERSION=${{ matrix.python-version }}
tags: localpavics-sdi:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- name: Dagger testing
run: |
python ./ci/dagger-pipeline.py