Bump ruff from 0.3.7 to 0.4.4 in /requirements #1314
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: Verify Docker Image | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
docker_config_check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- expected: { version: local, push: false } | |
input: { version: '', push: '' } | |
- expected: { version: version, push: true } | |
input: { version: version, push: true } | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Docker Compose (default) | |
id: default | |
env: | |
DOCKER_VERSION: ${{ matrix.input.version }} | |
DOCKER_PUSH: ${{ matrix.input.push }} | |
shell: bash | |
run: | | |
set -xue | |
config=$(make docker_compose_config) | |
# Expect image tag is correct | |
echo $config | grep -q "image: mozilla/addons-server:${{ matrix.expected.version }}" | |
# Expect docker push args are correct | |
if [[ ${{ matrix.expected.push }} == "true" ]]; then | |
echo $config | grep -q -- "--push" | |
echo $config | grep -v -q -- "--load" | |
else | |
echo $config | grep -v -q -- "--push" | |
echo $config | grep -q -- "--load" | |
fi | |
# Expect docker platform is correct | |
echo $config | grep -q -- "platform: linux/amd64" | |
echo $config | grep -q -- "\"platforms\": \[ | |
\"linux/amd64\" | |
\]" | |
verify_docker_image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Docker image | |
id: build | |
uses: ./.github/actions/build-docker | |
- name: Create failure | |
id: failure | |
uses: ./.github/actions/run-docker | |
with: | |
image: ${{ steps.build.outputs.tags }} | |
run: | | |
exit 1 | |
continue-on-error: true | |
- name: Verify failure | |
if: always() | |
run: | | |
if [ "${{ steps.failure.outcome }}" -ne "failure" ]; then | |
echo "Expected failure" | |
exit 1 | |
fi | |
- name: Check (special characters in command) | |
uses: ./.github/actions/run-docker | |
with: | |
image: ${{ steps.build.outputs.tags }} | |
run: | | |
echo 'this is a question?' | |
echo 'a * is born' | |
echo 'wow an array []' | |
- name: Manage py check | |
uses: ./.github/actions/run-docker | |
with: | |
image: ${{ steps.build.outputs.tags }} | |
options: | |
run: | | |
make update_deps | |
make check |