Test Docker CPU CI/CD #235
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: Test Docker CPU CI/CD | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '23 5 * * 5' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the CPU Docker img | |
run: docker build . --file Dockerfile.cpu --tag carvekit | |
- name: Test CPU Docker image | |
run: docker run --rm carvekit pytest | |
- name: Build the GPU Docker image | |
run: docker build . --file Dockerfile.cuda --tag carvekit_gpu | |
- name: Test GPU Docker image on CPU | |
run: docker run --rm carvekit_gpu pytest | |