Skip to content

Commit

Permalink
Bump GH actions (#935)
Browse files Browse the repository at this point in the history
* bump gh actions

* remove hardcoded architectures

* update to pytest 8.2

* Use macos-13 instead of macos-latest for now

* Add mypy type ignore until we fix wasabi
  • Loading branch information
svlandeg committed Jun 3, 2024
1 parent 0323d3a commit 126ea7f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/explosionbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install and run explosion-bot
run: |
pip install git+https://${{ secrets.EXPLOSIONBOT_TOKEN }}@github.com/explosion/explosion-bot
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure Python version
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
architecture: x64

- name: black
run: |
Expand All @@ -45,12 +44,12 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-13]
python_version: ["3.12"]
include:
- os: windows-latest
python_version: "3.9"
- os: macos-latest
- os: macos-13
python_version: "3.10"
- os: ubuntu-latest
python_version: "3.11"
Expand All @@ -61,13 +60,12 @@ jobs:

steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure Python version
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
architecture: x64

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ packaging>=20.0
# Development dependencies
cython>=0.25.0,<3.0
hypothesis>=3.27.0,<6.72.2
pytest>=5.2.0,!=7.1.0
pytest>=8.2.0
pytest-cov>=2.7.0,<5.0.0
coverage>=5.0.0,<8.0.0
mock>=2.0.0,<3.0.0
Expand Down
2 changes: 1 addition & 1 deletion thinc/tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@pytest.fixture
def test_files(nb_file):
pytest.importorskip("nbconvert")
pytest.importorskip("nbconvert", exc_type=ImportError)
pytest.importorskip("nbformat")
import nbconvert
import nbformat
Expand Down
2 changes: 1 addition & 1 deletion thinc/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from pydantic import ValidationError, create_model # type: ignore

import numpy
from wasabi import table
from wasabi import table # type: ignore

from . import types # noqa: E402
from .compat import (
Expand Down

0 comments on commit 126ea7f

Please sign in to comment.