-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 772 Bytes
/
pytest.yml
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
38
39
40
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
run-tests:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo
ports:
- 27017:27017
steps:
- name: Check out repository
uses: actions/checkout@main
with:
ref: main
# fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@main
with:
python-version: '3.10'
- name: Install project and dependencies
run: python -m pip install --upgrade pip && pip install smoldyn simulariumio && pip install .
- name: Install additional dependencies
run: |
pip install nbconvert pytest pytest-cov
- name: Test with pytest
run: |
pytest