Skip to content

Opening discussion about samplesheet_generator #14

Opening discussion about samplesheet_generator

Opening discussion about samplesheet_generator #14

Workflow file for this run

name: Docker Build
on:
push:
branches:
- main
pull_request:
branches:
- main
tags:
- '*.*.*'
jobs:
test:
name: Run unit tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
-
name: Check out the repo
uses: actions/checkout@v4
-
name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
-
name: Install dependencies
run: pip3 install pytest pytest-md pytest-emoji && pip3 install -r requirements.txt
-
name: Unit testing
uses: pavelzw/pytest-action@v2
with:
emoji: false
verbose: false
job-summary: true
build:
name: Build Image
runs-on: ubuntu-latest
needs: test
steps:
-
name: Check out the repo
uses: actions/checkout@v4
-
name: Lint Dockerfile
uses: hadolint/[email protected]
-
name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
inpred/samplesheet_generator
tags: |
latest
type=semver,pattern={{raw}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
-
name: Login to Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push image to Docker Hub
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}