sqlite-utils/.github/workflows/test.yml
Workflow config file is invalid. Please check your config file: Line: 10 Column 5: Failed to match job-factory: Line: 35 Column 7: Failed to match run-step: Line: 36 Column 11: Failed to parse: got unexpected character '"' while lexing expression, expecting 'a'..'z', 'A'..'Z', '_', '0'..'9', ''', '}', '(', ')', '[', ']', '.', '!', '<', '>', '=', '&', '|', '*', ',', ' '. do you mean string literals? only single quotes are available for string delimiter Line: 35 Column 7: Failed to match regular-step: Line: 36 Column 11: Failed to parse: got unexpected character '"' while lexing expression, expecting 'a'..'z', 'A'..'Z', '_', '0'..'9', ''', '}', '(', ')', '[', ']', '.', '!', '<', '>', '=', '&', '|', '*', ',', ' '. do you mean string literals? only single quotes are available for string delimiter Line: 37 Column 7: Unknown Property run Line: 10 Column 5: Failed to match workflow-job: Line: 16 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error
Simon Willison 7494187284
Only install SpatiaLite on Ubuntu, refs #395
For tests added to #79
2022-02-03 22:05:12 -08:00

49 lines
1.3 KiB
YAML

name: Test
on: [push]
env:
FORCE_COLOR: 1
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
numpy: [0, 1]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
name: Configure pip caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -e '.[test,mypy,flake8]'
- name: Optionally install numpy
if: matrix.numpy == 1
run: pip install numpy
- name: Install SpatiaLite
if: matrix.os == "ubuntu-latest"
run: sudo apt-get install libsqlite3-mod-spatialite
- name: Run tests
run: |
pytest -v
- name: run mypy
run: mypy sqlite_utils tests
- name: run flake8
run: flake8
- name: Check formatting
run: black . --check
- name: Check if cog needs to be run
run: |
cog --check README.md docs/*.rst