-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.14 KB
/
build-test.yaml
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
41
42
43
44
45
46
47
48
49
50
name: Testing and Linting
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
services:
mongodb:
image: mongo:3.6
ports:
- 27017:27017
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Cache tox environments
uses: actions/cache@v4
with:
path: .tox
key: ${{ matrix.python-version }}-tox-${{ hashFiles('setup.py', 'requirements.txt') }}
- name: Run Linter
run: tox -e lint -- girder_wholetale
- name: Run Tests with coverage
env:
GIRDER_MAX_CURSOR_TIMEOUT_MS: 60000
run: tox -e pytest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}