Docker build #88
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 build | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '36 6 * * *' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.9', '3.10', '3.11' ] | |
steps: | |
- name: Clone and checkout branch | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Build project | |
run: make | |
- name: Run tests | |
run: make test | |
build: | |
name: Build | |
needs: tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone and checkout branch | |
uses: actions/checkout@v2 | |
- name: Build docker image | |
run: docker build -t test-tag . |