Skip to content

Commit f9a2e28

Browse files
authored
Merge branch 'develop' into dependabot/pip/transformers-4.36.0
2 parents 902a258 + 49739ff commit f9a2e28

File tree

142 files changed

+7811
-72304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+7811
-72304
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.8.1.dev0
2+
current_version = 0.8.2.dev0
33
commit = False
44
tag = False
55
allow_dirty = False

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
notebooks/*.ipynb -linguist-detectable
2+
*.png filter=lfs diff=lfs merge=lfs -text
3+
*.svg filter=lfs diff=lfs merge=lfs -text
4+
logo.svg -filter=lfs -diff=lfs -merge=lfs text

.github/actions/python/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
using: "composite"
99
steps:
1010
- name: Set up Python ${{ inputs.python_version }}
11-
uses: actions/setup-python@v4
11+
uses: actions/setup-python@v5
1212
with:
1313
python-version: ${{ inputs.python_version }}
1414
cache: 'pip'

.github/workflows/main.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
name: Lint code and check type hints
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- name: Setup Python 3.8
2929
uses: ./.github/actions/python
3030
with:
3131
python_version: 3.8
32-
- uses: actions/cache@v3
32+
- uses: actions/cache@v4
3333
with:
3434
path: ~/.cache/pre-commit
3535
key: pre-commit-${{ env.pythonLocation }}-${{ hashFiles('.pre-commit-config.yaml') }}
@@ -43,19 +43,21 @@ jobs:
4343
run: |
4444
MYPY_VERSION=$(mypy --version | sed 's/[^0-9.]*\([0-9.]*\).*/\1/')
4545
echo "key=mypy-$MYPY_VERSION-${{ env.pythonLocation }}" >> $GITHUB_OUTPUT
46-
- uses: actions/cache@v3
46+
- uses: actions/cache@v4
4747
with:
4848
path: .mypy_cache
4949
key: ${{ steps.generate-mypy-cache-key.outputs.key }}
5050
- name: Check Type Hints
5151
run: mypy src/
52+
5253
docs:
5354
name: Build Docs
5455
runs-on: ubuntu-latest
5556
steps:
56-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@v4
5758
with:
5859
fetch-depth: 0
60+
lfs: true
5961
- name: Setup Python 3.8
6062
uses: ./.github/actions/python
6163
with:
@@ -66,11 +68,12 @@ jobs:
6668
pandoc-version: ${{ env.PANDOC_VERSION }}
6769
- name: Build Docs
6870
run: mkdocs build
71+
6972
group-tests:
7073
strategy:
7174
fail-fast: false
7275
matrix:
73-
python_version: ["3.8", "3.9", "3.10"]
76+
python_version: ["3.8", "3.9", "3.10", "3.11"]
7477
group_number: [1, 2, 3, 4]
7578
name: Run Tests - Python ${{ matrix.python_version }} - Group ${{ matrix.group_number }}
7679
uses: ./.github/workflows/run-tests-workflow.yaml
@@ -79,15 +82,17 @@ jobs:
7982
group_number: ${{ matrix.group_number }}
8083
python_version: ${{ matrix.python_version }}
8184
needs: [code-quality]
85+
8286
notebook-tests:
8387
strategy:
8488
matrix:
85-
python_version: ["3.8", "3.9", "3.10"]
89+
python_version: ["3.8", "3.9", "3.10", "3.11"]
8690
name: Run Notebook tests - Python ${{ matrix.python_version }}
8791
uses: ./.github/workflows/run-notebook-tests-workflow.yaml
8892
with:
8993
python_version: ${{ matrix.python_version }}
9094
needs: [code-quality]
95+
9196
push-docs-and-release-testpypi:
9297
name: Push Docs and maybe release Package to TestPyPI
9398
runs-on: ubuntu-latest
@@ -96,7 +101,10 @@ jobs:
96101
concurrency:
97102
group: publish
98103
steps:
99-
- uses: actions/checkout@v3
104+
- uses: actions/checkout@v4
105+
with:
106+
fetch-depth: 0
107+
lfs: true
100108
- name: Setup Python 3.8
101109
uses: ./.github/actions/python
102110
with:

.github/workflows/publish.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Python Package to PyPI
1+
name: Publish package and docs
22

33
on:
44
release:
@@ -28,12 +28,17 @@ jobs:
2828
steps:
2929
- name: Checking out last commit in release
3030
if: ${{ github.event_name != 'workflow_dispatch' }}
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
32+
with:
33+
lfs: true
34+
fetch-depth: 0
3235
- name: Checking out last commit for tag ${{ inputs.tag_name }}
33-
uses: actions/checkout@v3
3436
if: ${{ github.event_name == 'workflow_dispatch' }}
37+
uses: actions/checkout@v4
3538
with:
3639
ref: ${{ inputs.tag_name }}
40+
lfs: true
41+
fetch-depth: 0
3742
- name: Fail if running locally
3843
if: ${{ env.ACT }} # skip during local actions testing
3944
run: |

.github/workflows/run-notebook-tests-workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
run-tests:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121
- name: Setup Python ${{ inputs.python_version }}
2222
uses: ./.github/actions/python
2323
with:
2424
python_version: ${{ inputs.python_version }}
2525
- name: Cache Tox Directory for Tests
26-
uses: actions/cache@v3
26+
uses: actions/cache@v4
2727
with:
2828
key: tox-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('tox.ini', 'requirements.txt') }}-${{ inputs.python_version }}
2929
path: .tox

.github/workflows/run-tests-workflow.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,28 @@ on:
1616
type: string
1717
required: true
1818

19+
1920
env:
2021
PY_COLORS: 1
2122

2223
jobs:
2324
run-tests:
2425
runs-on: ubuntu-latest
2526
steps:
26-
- uses: actions/checkout@v3
27+
- name: Free Disk Space (Ubuntu)
28+
uses: jlumbroso/free-disk-space@main
29+
with:
30+
large-packages: false
31+
docker-images: false
32+
- uses: actions/checkout@v4
2733
with:
2834
fetch-depth: 0
2935
- name: Setup Python ${{ inputs.python_version }}
3036
uses: ./.github/actions/python
3137
with:
3238
python_version: ${{ inputs.python_version }}
3339
- name: Cache Tox Directory for Tests
34-
uses: actions/cache@v3
40+
uses: actions/cache@v4
3541
with:
3642
key: tox-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('tox.ini', 'requirements.txt') }}-${{ inputs.python_version }}
3743
path: .tox
@@ -40,7 +46,7 @@ jobs:
4046
- name: Test Group ${{ inputs.group_number }}
4147
run: tox -e tests -- --slow-tests --splits ${{ inputs.split_size }} --group ${{ inputs.group_number }}
4248
- name: Upload coverage reports to Codecov
43-
uses: codecov/codecov-action@v3
49+
uses: codecov/codecov-action@v4
4450
with:
4551
token: ${{ secrets.CODECOV_TOKEN }}
4652
files: ./coverage.xml

.github/workflows/stale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v6
10+
- uses: actions/stale@v9
1111
with:
1212
only-labels: 'awaiting-reply'
1313
days-before-stale: 30

0 commit comments

Comments
 (0)