-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (30 loc) · 947 Bytes
/
autotests.yml
File metadata and controls
36 lines (30 loc) · 947 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
name: Auto Tests
on: [push]
env:
TEST_MERGIN_URL: https://app.dev.merginmaps.com/
TEST_API_USERNAME: test_plugin
TEST_API_PASSWORD: ${{ secrets.MERGINTEST_API_PASSWORD }}
TEST_API_USERNAME2: test_plugin2
TEST_API_PASSWORD2: ${{ secrets.MERGINTEST_API_PASSWORD2 }}
concurrency:
group: ci-${{github.ref}}-autotests
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install python package dependencies
run: |
python -m pip install --upgrade pip
pip install python-dateutil pytz pytest pytest-cov pygeodiff coveralls
- name: Run tests
run: |
pytest --cov=mergin --cov-report=lcov mergin/test/
- name: Submit coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
format: lcov