Skip to content

Commit 5409c46

Browse files
committed
Fix test script
1 parent 10be3fb commit 5409c46

File tree

3 files changed

+165
-12
lines changed

3 files changed

+165
-12
lines changed

.github/workflows/pytest.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will install Python dependencies, run tests, format, and lint with a single version of Python
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
41
name: Mapillary Python SDK - PyTest Workflow
52

63
on:
@@ -15,18 +12,17 @@ jobs:
1512
runs-on: ubuntu-latest
1613

1714
steps:
18-
- uses: actions/checkout@v2
19-
- name: Set up Python 3.9
20-
uses: actions/setup-python@v2
15+
- uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
2118
with:
22-
python-version: 3.9
19+
python-version: "3.x"
2320
- name: Install dependencies
2421
run: |
25-
python -m pip install --upgrade pip && make setup-dev && pip install flake8 black pytest requests mercantile vt2geojson pandas
26-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
22+
make setup-dev
2723
- name: Locally install branch's mapillary
2824
run: |
29-
make build && pip3 install -e .
25+
make build && make local-install
3026
- name: Formatting with black
3127
run: |
3228
make format
@@ -35,4 +31,4 @@ jobs:
3531
make lint
3632
- name: Test with pytest
3733
run: |
38-
make test
34+
make test

Pipfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ turfpy = ">=0.0.7"
1414
geojson = ">=2.5.0"
1515

1616
[dev-packages]
17+
haversine = ">=2.3.1"
18+
mercantile = ">=1.2.1"
19+
vt2geojson = ">=0.2.1"
1720
wheel = ">=0.37.0"
1821
build = ">=0.6.0.post1"
1922
pytest = ">=6.2.4"

Pipfile.lock

Lines changed: 155 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)