Skip to content

Commit

Permalink
Merge pull request #21 from kirkhansen/github-workflows
Browse files Browse the repository at this point in the history
Add testing github workflow
  • Loading branch information
trollefson authored Apr 2, 2021
2 parents e285452 + 95ddaef commit 33ec44b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * 0'

jobs:
test:
name: ${{ matrix.os }}, ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Build
shell: bash
run: |
sudo add-apt-repository -y ppa:ubuntugis/ppa
sudo apt-get update -y
sudo apt install -y gdal-bin python3-gdal
python -m pip install -e .[dev]
- name: Lint
shell: bash
run: |
black --check --exclude venv .
pylint rest_framework_mvt/
- name: Test
shell: bash
run: py.test --cov-report term-missing --cov=rest_framework_mvt --cov-report xml
- uses: codecov/codecov-action@v1
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: 90% # the required coverage value
threshold: 0.2% # the leniency in hitting the target

0 comments on commit 33ec44b

Please sign in to comment.