Merge pull request #222 from MerginMaps/project-history #554
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.x' | |
- 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 mergin/test/ | |
- name: Submit coverage to Coveralls | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
coveralls --service=github |