Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions/{upload,download}-artifact to v4 #13

Merged
merged 7 commits into from
Sep 4, 2024
Merged
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
31 changes: 16 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
runs-on: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -47,16 +47,16 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- uses: dtolnay/rust-toolchain@stable
- name: Build package
uses: PyO3/maturin-action@v1
with:
command: sdist
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.runs-on }}
path: target/wheels

pack-linux:
Expand All @@ -65,7 +65,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
target: [ x86_64, i686 ]
steps:
- uses: actions/checkout@v3
Expand All @@ -80,9 +80,9 @@ jobs:
manylinux: auto
args: -i ${{ matrix.python-version }} --release
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.runs-on }}
path: target/wheels

pack-windows:
Expand All @@ -91,7 +91,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
target: [ x64, x86 ]
steps:
- uses: actions/checkout@v3
Expand All @@ -107,9 +107,9 @@ jobs:
manylinux: auto
args: -i ${{ matrix.python-version }} --release
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.runs-on }}
path: target/wheels

pack-macos:
Expand All @@ -118,7 +118,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -132,9 +132,9 @@ jobs:
manylinux: auto
args: -i ${{ matrix.python-version }} --release --universal2
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.runs-on }}
path: target/wheels

release:
Expand All @@ -143,9 +143,10 @@ jobs:
needs: [ pack-sdist, pack-linux, pack-windows, pack-macos ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheels
pattern: wheels-*
merge-multiple: true
- name: Publish to PyPI
uses: messense/maturin-action@v1
env:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_comparison_cat.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from __future__ import annotations

import vaporetto
import Mykytea # type: ignore[import]
from sudachipy import tokenizer as sudachi_tokenizer # type: ignore[import]
import Mykytea # type: ignore[import-not-found]
from sudachipy import tokenizer as sudachi_tokenizer # type: ignore[import-not-found]
from sudachipy import dictionary as sudachi_dictionary

from pytest_benchmark import fixture # type: ignore[import]
from pytest_benchmark import fixture # type: ignore[import-not-found]
from tests import dataset


Expand Down
6 changes: 3 additions & 3 deletions tests/test_comparison_count.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from __future__ import annotations

import vaporetto
import Mykytea # type: ignore[import]
from sudachipy import tokenizer as sudachi_tokenizer # type: ignore[import]
import Mykytea # type: ignore[import-not-found]
from sudachipy import tokenizer as sudachi_tokenizer # type: ignore[import-not-found]
from sudachipy import dictionary as sudachi_dictionary

from pytest_benchmark import fixture # type: ignore[import]
from pytest_benchmark import fixture # type: ignore[import-not-found]
from tests import dataset


Expand Down
Loading