mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-14 02:34:28 +00:00
41 lines
No EOL
844 B
YAML
41 lines
No EOL
844 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
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
|
|
run: pip install -e ".[tests,linkml]"
|
|
|
|
- name: Run Tests
|
|
run: pytest
|
|
|
|
- name: Report coverage
|
|
if: ${{ matrix.python-version }} == "3.11"
|
|
run: "coveralls --service=github"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: true
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: chartboost/ruff-action@v1
|
|
- uses: psf/black@stable |