Set default initial num. of food to 40 #513
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '*.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '*.md' | |
jobs: | |
tests: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {name: Linux, python: '3.11', os: ubuntu-latest, nox: "tests"} | |
- {name: Windows, python: '3.10', os: windows-latest, nox: "tests"} | |
- {name: Mac, python: '3.10', os: macos-latest, nox: "tests"} | |
- {name: Py312, python: '3.12', os: ubuntu-latest, nox: "tests"} | |
- {name: Py310, python: '3.10', os: ubuntu-latest, nox: "tests"} | |
- {name: Lint, python: '3.11', os: ubuntu-latest, nox: "lint"} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Update pip and install nox | |
run: | | |
pip install --upgrade pip | |
pip install nox | |
- name: Run pip compile | |
run: nox --session=compile | |
- name: Run tests | |
run: nox --session=${{ matrix.nox }} --python=${{ matrix.python }} |