Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Add tox and Github Actions #131

Merged
merged 3 commits into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test overpass-api-python-wrapper

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install libgeos-dev
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Overpass API python wrapper
===========================

![CI](https://github.com/mvexel/overpass-api-python-wrapper/workflows/CI/badge.svg)

Python bindings for the OpenStreetMap [Overpass
API](http://wiki.openstreetmap.org/wiki/Overpass_API).

Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
Overpass API python wrapper
===========================

.. image:: https://github.com/mvexel/overpass-api-python-wrapper/workflows/CI/badge.svg
:target: https://github.com/mvexel/overpass-api-python-wrapper/actions?query=workflow%3ACI


This is a thin wrapper around the OpenStreetMap `Overpass
API <http://wiki.openstreetmap.org/wiki/Overpass_API>`__.


|Build Status|

Install it
Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest>=6.2.0
pytest>=6.2.0
tox>=3.20.1
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[tox]
envlist = py{36,37,38,39}
skip_missing_interpreters = true

[testenv]
deps = -rrequirements-dev.txt
commands = python -m pytest

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39