Skip to content

Commit

Permalink
python 3.12 as CI upper version
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Jul 20, 2024
1 parent cc2e7b2 commit c242afa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
- macOS-latest
python-version:
- "3.8"
- "3.11"
- "3.12"
networkx-version:
- "1.*"
- "2.*"
exclude:
- python-version: "3.11"
- python-version: "3.12"
networkx-version: "1.*"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -33,7 +33,7 @@ jobs:
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Run pre-commit
if: matrix.python-version == '3.11'
uses: pre-commit/[email protected].0
if: matrix.python-version == '3.12'
uses: pre-commit/[email protected].1
- name: Test with pytest
run: pytest --color=yes
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: |
pip install --upgrade pip
Expand All @@ -22,7 +22,7 @@ jobs:
run: python -m build --sdist --wheel --outdir=dist
- name: Deploy package
if: '!github.event.repository.fork'
uses: pypa/gh-action-pypi-publish@v1.5.1
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_token }}
Expand Down
2 changes: 1 addition & 1 deletion obonet/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Any, Callable, TextIO, Union
from urllib.request import urlopen

PathType = Union[str, os.PathLike[Any], TextIO]
PathType = Union[str, "os.PathLike[Any]", TextIO]


def open_read_file(path: PathType, encoding: str | None = None) -> TextIO:
Expand Down

0 comments on commit c242afa

Please sign in to comment.