This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
Bump certifi from 2021.10.8 to 2023.7.22 #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker tests | |
on: | |
workflow_dispatch: | |
push: | |
# trigger only on main branch | |
branches: | |
- main | |
# trigger only on changes to the following files | |
paths: | |
- "theatre/src/**" | |
- "theatre/tests/**" | |
- "theatre/poetry.lock" | |
- "theatre/pyproject.toml" | |
- "environment.yml" | |
- "requirements.txt" | |
- "Dockerfile" | |
- ".github/workflows/test-docker.yml" | |
pull_request: | |
# trigger only on main branch | |
branches: | |
- main | |
# trigger only on changes to the following files | |
paths: | |
- "theatre/src/**" | |
- "theatre/tests/**" | |
- "theatre/poetry.lock" | |
- "theatre/pyproject.toml" | |
- "environment.yml" | |
- "requirements.txt" | |
- "Dockerfile" | |
- ".github/workflows/test-docker.yml" | |
jobs: | |
test-docker: | |
name: Run tests inside Docker container | |
runs-on: ubuntu-latest | |
steps: | |
- # get repository code | |
name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build the image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
target: test | |
load: true | |
tags: theatre:test | |
cache-from: type=gha, scope=${{ github.workflow }} | |
cache-to: type=gha, mode=max, scope=${{ github.workflow }} | |
- name: Run tests | |
run: docker run --rm theatre:test |