641 scale input boxes to improve visability of numbers #59
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: pytest | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [closed] | |
workflow_dispatch: # used to allow manual triggering | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
if: > | |
github.event.pull_request.merged == true || | |
github.event_name == 'workflow_dispatch' | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: ['3.10','3.11'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
include: | |
- os: ubuntu-latest | |
path: ~/.cache/pip | |
- os: macos-latest | |
path: ~/Library/Caches/pip | |
- os: windows-latest | |
path: ~\AppData\Local\pip\Cache | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Ubuntu-specific steps | |
- name: Update packages (Ubuntu) | |
if: runner.os == 'Linux' | |
run: sudo apt-get update | |
- name: Install packages (Ubuntu) | |
if: runner.os == 'Linux' | |
run: sudo apt-get install --fix-missing libgl1-mesa-dev | |
# macOS-specific steps | |
- name: Set environment variables (macOS) | |
if: runner.os == 'macOS' | |
run: | | |
echo "MKL_NUM_THREADS=1" >> $GITHUB_ENV | |
echo "NUMEXPR_NUM_THREADS=1" >> $GITHUB_ENV | |
echo "OMP_NUM_THREADS=1" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install ruff pytest | |
pip install -e . | |
- name: Lint with Ruff | |
run: ruff check . | |
- name: Test with pytest | |
run: pytest | |