⬆️ Update safety requirement from <3.1.0,>=1.10.3 to >=1.10.3,<3.3.0 #852
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: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.9"] | |
env: | |
# cache busting if requirements haven't changed | |
CACHE_EPOCH: 0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Hatch | |
run: pip install --upgrade hatch | |
- name: Set up cache | |
uses: actions/cache@v4 | |
with: | |
path: .venv | |
key: venv-${{ env.CACHE_EPOCH }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} | |
- name: Install dependencies | |
run: | | |
pip install .[dev] | |
- name: Pytest | |
run: | | |
pytest | |