build(deps-dev): bump tornado from 6.1 to 6.3.3 #275
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: "Check and test code (docker)" | |
on: # yamllint disable-line rule:truthy | |
push: | |
permissions: | |
contents: read | |
jobs: | |
check-code-style: | |
name: Check code style | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@v3 | |
- | |
name: Check Markdown syntax (docker) | |
shell: sh | |
run: | | |
make -- check-md | |
- | |
name: Check YAML syntax (docker) | |
shell: sh | |
run: | | |
make -- check-yaml | |
- | |
name: Check Makefile syntax (docker) | |
shell: sh | |
run: | | |
make -- check-make | |
- | |
name: Check Python syntax (PEP8) (docker) | |
shell: sh | |
run: | | |
make -- check-pep8 | |
run-code-analysis: | |
name: Run code analysis | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@v3 | |
- | |
name: Set up Docker build | |
uses: ./.github/actions/docker-setup/ | |
- | |
name: Build Docker image (my_test:latest) | |
uses: ./.github/actions/docker-build/ | |
with: | |
tags: my_test:latest | |
dockerfile: ./tests/Dockerfile | |
context: . | |
cache-key: tests | |
- | |
name: Run flake8 | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: my_test:latest | |
options: --tty | |
docker_network: none | |
run: make -- check-pep8-local | |
- | |
name: Run mypy | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: my_test:latest | |
options: --tty | |
docker_network: none | |
run: make -- check-mypy | |
- | |
name: Run pylint | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: my_test:latest | |
options: --tty | |
docker_network: none | |
run: make -- check-lint | |
run-unit-tests: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@v3 | |
- | |
name: Set up Docker build | |
uses: ./.github/actions/docker-setup/ | |
- | |
name: Build Docker image (my_test:latest) | |
uses: ./.github/actions/docker-build/ | |
with: | |
tags: my_test:latest | |
dockerfile: ./tests/Dockerfile | |
context: . | |
cache-key: tests | |
- | |
name: Run unit tests | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: my_test:latest | |
options: --tty | |
docker_network: none | |
run: make -- test | |
run-speed-test: | |
name: Run speed test | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@v3 | |
- | |
name: Set up Docker build | |
uses: ./.github/actions/docker-setup/ | |
- | |
name: Build Docker image (my_test:latest) | |
uses: ./.github/actions/docker-build/ | |
with: | |
tags: my_test:latest | |
dockerfile: ./tests/Dockerfile | |
context: . | |
cache-key: tests | |
- | |
name: Run speed test | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: my_test:latest | |
options: --tty | |
docker_network: none | |
run: make -- speedtest | |
functional-tests: | |
name: Run functional tests | |
uses: ./.github/workflows/functional-tests.yml | |
publish-image: | |
name: Build and publish Docker image | |
if: github.event_name != 'pull_request' | |
needs: [ check-code-style, run-code-analysis, run-unit-tests, functional-tests ] | |
uses: ./.github/workflows/publish-image.yml | |
secrets: | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
create-release: | |
name: Create Release for ${{ github.ref }} | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: [ check-code-style, run-code-analysis, run-unit-tests, functional-tests ] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- | |
name: Create Release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
draft: false | |
prerelease: false |