Update publish.yaml #22
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: Build and test docker images | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: ['datascience-notebook', 'python-test-environment', 'smee-proxy', 'jenkins-inbound-agent', 'toolbox'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build docker image | |
run: docker build -t ${{ matrix.image }}:latest ${{ matrix.image }}/. | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
version: latest | |
- name: Install dependencies | |
run: poetry install -v | |
- name: Test docker image | |
run: make test dir=${{ matrix.image }} | |
- name: Lint python code | |
run: make lint |