Skip to content

Commit

Permalink
ci: also test py 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 28, 2024
1 parent da3eb3e commit c55112f
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
max-line-length = 132
ignore = E203,W503
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,.archive/
per-file-ignores =
__init__.py:F401
20 changes: 0 additions & 20 deletions .gitattributes

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest]
experimental: [true]
include:
- os: windows-latest
python-version: "3.11"
python-version: "3.12"
experimental: false
- os: macos-latest
python-version: "3.11"
python-version: "3.12"
experimental: false

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -42,7 +42,7 @@ jobs:
- name: type annotation check
timeout-minutes: 10
if: runner.os == 'Linux'
run: mypy
run: mypy --install-types --non-interactive

- run: pytest
timeout-minutes: 7
2 changes: 1 addition & 1 deletion .github/workflows/publish-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ version = {attr = "georinex.__version__"}

[project.optional-dependencies]
tests = ["pytest", "pytest-timeout"]
lint = ["flake8", "flake8-bugbear", "flake8-builtins", "flake8-blind-except", "mypy", "types-python-dateutil"]
lint = ["flake8", "flake8-bugbear", "flake8-builtins", "flake8-blind-except", "mypy"]
plot = ["matplotlib", "seaborn", "pymap3d", "cartopy"]
io = ["psutil"]

Expand Down
26 changes: 26 additions & 0 deletions src/georinex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,29 @@
from .keplerian import keplerian2ecef

__version__ = "1.16.2"

__all__ = [
"load",
"rinexnav",
"rinexobs",
"batch_convert",
"gettime",
"rinexheader",
"globber",
"to_datetime",
"rinexinfo",
"rinexobs2",
"obsheader2",
"obstime2",
"rinexobs3",
"obsheader3",
"obstime3",
"rinexnav2",
"navheader2",
"navtime2",
"rinexnav3",
"navheader3",
"navtime3",
"load_sp3",
"keplerian2ecef",
]
1 change: 1 addition & 0 deletions src/georinex/tests/test_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Self-test file, registration case
for OBS RINEX reader
"""

import pytest
import xarray
from datetime import datetime
Expand Down
1 change: 1 addition & 0 deletions src/georinex/tests/test_lzw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
test for LZW .Z file
"""

from pathlib import Path
import pytest

Expand Down
1 change: 1 addition & 0 deletions src/georinex/tests/test_time.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
test all files types with time limits
"""

import pytest
from pathlib import Path
from datetime import datetime
Expand Down

0 comments on commit c55112f

Please sign in to comment.