Skip to content

Commit 29317d8

Browse files
authored
Merge pull request #131 from eumiro/tox-and-gha
Add tox and Github Actions
2 parents be52585 + f6a1d62 commit 29317d8

File tree

5 files changed

+48
-1
lines changed

5 files changed

+48
-1
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test overpass-api-python-wrapper
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 5
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8, 3.9]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
sudo apt-get install libgeos-dev
22+
python -m pip install --upgrade pip
23+
pip install tox tox-gh-actions
24+
- name: Test with tox
25+
run: tox

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Overpass API python wrapper
22
===========================
33

4+
![CI](https://github.com/mvexel/overpass-api-python-wrapper/workflows/CI/badge.svg)
5+
46
Python bindings for the OpenStreetMap [Overpass
57
API](http://wiki.openstreetmap.org/wiki/Overpass_API).
68

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
Overpass API python wrapper
22
===========================
33

4+
.. image:: https://github.com/mvexel/overpass-api-python-wrapper/workflows/CI/badge.svg
5+
:target: https://github.com/mvexel/overpass-api-python-wrapper/actions?query=workflow%3ACI
6+
7+
48
This is a thin wrapper around the OpenStreetMap `Overpass
59
API <http://wiki.openstreetmap.org/wiki/Overpass_API>`__.
610

11+
712
|Build Status|
813

914
Install it

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
pytest>=6.2.0
1+
pytest>=6.2.0
2+
tox>=3.20.1

tox.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tox]
2+
envlist = py{36,37,38,39}
3+
skip_missing_interpreters = true
4+
5+
[testenv]
6+
deps = -rrequirements-dev.txt
7+
commands = python -m pytest
8+
9+
[gh-actions]
10+
python =
11+
3.6: py36
12+
3.7: py37
13+
3.8: py38
14+
3.9: py39

0 commit comments

Comments
 (0)