Skip to content
Open
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
22 changes: 11 additions & 11 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
python-version: [3.9]
python-version: ["3.10", "3.11", "3.12", "3.13"]
env:
MYGEOTAB_DATABASE: ${{ secrets.MYGEOTAB_DATABASE }}
MYGEOTAB_USERNAME: ${{ secrets.MYGEOTAB_USERNAME }}
Expand All @@ -26,23 +26,23 @@ jobs:
MYGEOTAB_PASSWORD_ASYNC: ${{ secrets.MYGEOTAB_PASSWORD_ASYNC }}
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip pipenv
pipenv install --skip-lock --dev -e .
run: uv sync
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
pipenv run ruff check . --select=E9,F63,F7,F82 --output-format=full
uv run ruff check . --select=E9,F63,F7,F82 --output-format=full
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
pipenv run ruff check . --exit-zero
uv run ruff check . --exit-zero
- name: Test with pytest
run: |
pipenv run py.test --cov-config .coveragerc --cov-report xml:output/coverage.xml --cov mygeotab --junitxml output/python${{ matrix.python-version }}-test-results.xml --benchmark-min-rounds=3 --benchmark-storage=file://output/ --benchmark-autosave tests/
uv run pytest --cov-config .coveragerc --cov-report xml:output/coverage.xml --cov mygeotab --junitxml output/python${{ matrix.python-version }}-test-results.xml --benchmark-min-rounds=3 --benchmark-storage=file://output/ --benchmark-autosave tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
Expand All @@ -51,5 +51,5 @@ jobs:
- name: Archive code coverage results
uses: actions/upload-artifact@v6
with:
name: output
name: output-${{ matrix.python-version }}
path: output
25 changes: 0 additions & 25 deletions Pipfile

This file was deleted.

3,018 changes: 0 additions & 3,018 deletions Pipfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Features

- Automatic serializing and deserializing of API call results
- Clean, Pythonic API for querying data
- Cross-platform and compatible with Python 3.9+
- Cross-platform and compatible with Python 3.10+
- A `myg` command-line tool for interactively working with data in a terminal

Usage
Expand Down
8 changes: 4 additions & 4 deletions mygeotab/altitude/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ def do(self, params: dict) -> list:
"""
given the parameters, will call the request, wait on it to finish and return the combined data.
"""
logging.info(f"creating job")
logging.info("creating job")
job = self.create_job(params)
logging.info(f"job created: {job}")
params["functionParameters"]["jobId"] = job["id"]
logging.info(f"checking the job status")
logging.info("checking the job status")
results = self.wait_for_job_to_complete(params)
logging.info(f"job finished: {results}")
logging.info(f"gathering result")
logging.info("gathering result")
data = self.get_data(params)
logging.info(f"data gathered")
logging.info("data gathered")
return data
Loading
Loading