Skip to content

Setup actions

Setup actions #3

Workflow file for this run

name: Tests
on: [pull_request]
permissions:
packages: write
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build containers
run: docker buildx bake --file docker-compose.yml --file docker-compose.cache.json
- name: Test
run: docker-compose run --rm plugfs pytest --cov --cov-fail-under=100 -v