Cherry pick fixes from release branch #6314
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: Testing with CentOS 7 docker | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'release-*' | |
pull_request: | |
merge_group: | |
jobs: | |
test: | |
# It is hosted on Ubuntu but the docker image is built on CentOS 7 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- name: Pre-load docker image | |
run: docker pull ghcr.io/mantidproject/mantidimaging:centos7 | |
- name: List versions | |
uses: ./.github/actions/test | |
with: | |
command: python --version; conda list ; pip list | |
label: centos7 | |
- name: yapf | |
uses: ./.github/actions/test | |
with: | |
command: yapf --parallel --diff --recursive . | |
label: centos7 | |
- name: ruff | |
uses: ./.github/actions/test | |
with: | |
command: ruff . | |
label: centos7 | |
- name: mypy | |
uses: ./.github/actions/test | |
with: | |
# COMPAT: applitools has some bad signatures, so use --no-site-packages | |
command: mypy --ignore-missing-imports --no-site-packages mantidimaging | |
label: centos7 | |
- name: pytest | |
timeout-minutes: 5 | |
uses: ./.github/actions/test | |
with: | |
command: xvfb-run pytest -n auto -o log_cli=true --ignore=mantidimaging/eyes_tests --durations=10 | |
label: centos7 |