PR: Increase default max console buffer and warn if it's big (IPython console) #14744
Workflow file for this run
This file contains hidden or 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: File tests | |
on: | |
push: | |
branches: | |
- master | |
- 6.* | |
paths: | |
- '.github/scripts/install.sh' | |
- '.github/scripts/modules_test.sh' | |
- '.github/workflows/test-files.yml' | |
- 'requirements/*.yml' | |
- 'MANIFEST.in' | |
- '**.bat' | |
- '**.py' | |
- '**.sh' | |
- '!installers-conda/**' | |
pull_request: | |
branches: | |
- master | |
- 6.* | |
paths: | |
- '.github/scripts/install.sh' | |
- '.github/scripts/modules_test.sh' | |
- '.github/workflows/test-files.yml' | |
- 'requirements/*.yml' | |
- 'MANIFEST.in' | |
- '**.bat' | |
- '**.py' | |
- '**.sh' | |
- '!installers-conda/**' | |
workflow_call: | |
workflow_dispatch: | |
inputs: | |
ssh: | |
# github_cli: gh workflow run test-files.yml --ref <branch> -f ssh=true | |
description: 'Enable ssh debugging' | |
required: false | |
default: false | |
type: boolean | |
concurrency: | |
group: test-files-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
# Use this to disable the workflow | |
# if: false | |
name: Linux - Py${{ matrix.PYTHON_VERSION }} | |
runs-on: ubuntu-latest | |
env: | |
CI: 'true' | |
USE_CONDA: 'true' | |
OS: 'linux' | |
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | |
strategy: | |
fail-fast: false | |
matrix: | |
PYTHON_VERSION: ['3.9', '3.12'] | |
timeout-minutes: 30 | |
steps: | |
- name: Setup Remote SSH Connection | |
if: env.ENABLE_SSH == 'true' | |
uses: mxschmitt/action-tmate@v3 | |
timeout-minutes: 60 | |
with: | |
detached: true | |
- name: Checkout Pull Requests | |
if: github.event_name == 'pull_request' | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Checkout Push | |
if: github.event_name != 'pull_request' | |
uses: actions/checkout@v4 | |
- name: Fetch branches | |
if: github.event_name == 'pull_request' | |
run: git fetch --prune --unshallow | |
- name: Install dependencies | |
shell: bash | |
run: | | |
sudo apt-get update --fix-missing | |
sudo apt-get install -qq pyqt5-dev-tools libxcb-xinerama0 xterm --fix-missing | |
- name: Cache pip | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-cachepip-installconda-${{ env.CACHE_NUMBER }}-${{ hashFiles('setup.py') }} | |
- name: Create conda test environment | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
micromamba-version: '1.5.10-0' | |
environment-file: requirements/main.yml | |
environment-name: test | |
cache-downloads: true | |
create-args: python=${{ matrix.PYTHON_VERSION }} | |
- name: Install additional dependencies | |
shell: bash -l {0} | |
run: bash -l .github/scripts/install.sh | |
- name: Show test environment | |
shell: bash -l {0} | |
run: | | |
conda info | |
conda list | |
- name: Run file tests | |
shell: bash -l {0} | |
run: xvfb-run --auto-servernum .github/scripts/modules_test.sh || xvfb-run --auto-servernum .github/scripts/modules_test.sh |