numpydantic/.github/workflows/tests.yml

41 lines
844 B
YAML
Raw Permalink Normal View History

name: Tests
on:
push:
jobs:
test:
strategy:
matrix:
2024-04-23 03:01:55 +00:00
python-version: ["3.9", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
2024-02-06 00:51:50 +00:00
run: pip install -e ".[tests,linkml]"
- name: Run Tests
run: pytest
- name: Report coverage
2024-04-23 03:18:57 +00:00
if: ${{ matrix.python-version }} == "3.11"
run: "coveralls --service=github"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint:
runs-on: ubuntu-latest
2024-04-23 03:00:43 +00:00
continue-on-error: true
steps:
- uses: actions/checkout@v3
2024-04-23 03:00:43 +00:00
- uses: chartboost/ruff-action@v1
- uses: psf/black@stable