-
Notifications
You must be signed in to change notification settings - Fork 96
37 lines (37 loc) · 969 Bytes
/
test.yaml
File metadata and controls
37 lines (37 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test
on:
push:
branches:
- "**" # every branch
- "!gh-pages" # exclude gh-pages branch
- "!stage*" # exclude branches beginning with stage
paths:
- "src/datajoint"
- "tests"
pull_request:
branches:
- "**" # every branch
- "!gh-pages" # exclude gh-pages branch
- "!stage*" # exclude branches beginning with stage
paths:
- "src/datajoint"
- "tests"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
py_ver: ["3.10", "3.11", "3.12", "3.13"]
mysql_ver: ["8.0"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{matrix.py_ver}}
uses: actions/setup-python@v5
with:
python-version: ${{matrix.py_ver}}
- name: Integration test
env:
MYSQL_VER: ${{matrix.mysql_ver}}
run: |
pip install -e ".[test]"
pytest --cov-report term-missing --cov=datajoint tests