-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (48 loc) · 1.39 KB
/
tests.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Run tests and upload coverage
on: ["push", "pull_request"]
jobs:
test-python:
name: Coverage
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
mongodb-version: ["3.6"]
steps:
# Check out Scout code
- uses: actions/checkout@v2
# Set up python
- name: Set up Python ${{ matrix.python-version}}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version}}
- name: Production Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
pip install pytest-cov
pip install coveralls
- name: Test with pytest & Coveralls
run: |
pip install -r requirements-dev.txt
pytest --cov=./
coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
test-js:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [17.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm run test