Skip to content

Merge pull request #48 from flatironinstitute/fix-mutable-default-arg #17

Merge pull request #48 from flatironinstitute/fix-mutable-default-arg

Merge pull request #48 from flatironinstitute/fix-mutable-default-arg #17

Workflow file for this run

name: test_ubuntu
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Set up cache
uses: actions/[email protected]
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest mypy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Pytest
run: |
pytest tests/