Skip to content

Commit

Permalink
Merge pull request #167 from mvexel/chore-tests
Browse files Browse the repository at this point in the history
Make tests run again
  • Loading branch information
mvexel authored Aug 10, 2024
2 parents 559c965 + a618b2c commit 7e6a2fb
Show file tree
Hide file tree
Showing 9 changed files with 471 additions and 35 deletions.
44 changes: 29 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
name: Test overpass-api-python-wrapper

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
test:
runs-on: ubuntu-latest

strategy:
max-parallel: 5
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11"]

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
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install system dependencies
run: sudo apt-get install -y libgeos-dev

- name: Install project dependencies
run: poetry install --no-root --sync

- name: Run tests with tox
run: poetry run tox
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ pip-log.txt
docs/_build/
Pipfile.lock
venv/
.tox
51 changes: 50 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ python = ">3.9, <3.12"
osm2geojson = "^0.2.5"
requests = "^2.32.3"

[tool.poetry.dev-dependencies]
pytest = "^7.4.0"
tox = "^4.6.3"

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
geojson = "^3.1.0"
requests-mock = { extras = ["fixtures"], version = "^1.12.1" }
deepdiff = "^7.0.1"
tox = "^4.17.1"

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
4 changes: 0 additions & 4 deletions requirements-dev.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

Loading

0 comments on commit 7e6a2fb

Please sign in to comment.