Skip to content

Commit dfb3476

Browse files
authored
Merge pull request #416 from online-judge-tools/fix/ci-python-version
Update workflows, use newer version of Python
2 parents 54e07a6 + d7c3e35 commit dfb3476

File tree

9 files changed

+51
-48
lines changed

9 files changed

+51
-48
lines changed

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1111

1212
- name: Set up Python
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: '3.8'
1616

.github/workflows/pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v3
1313

1414
- name: Set up Python
15-
uses: actions/setup-python@v1
15+
uses: actions/setup-python@v4
1616

1717
- name: Install dependencies
1818
run: |

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212

1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v3
1515

1616
- name: Set up Python
17-
uses: actions/setup-python@v1
17+
uses: actions/setup-python@v4
1818
with:
19-
python-version: 3.6
19+
python-version: '3.8'
2020

2121
- name: Install dependencies
2222
run: pip install .[dev]

.github/workflows/verify.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,52 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v3
1111

1212
- name: Set up Python
13-
uses: actions/setup-python@v1
13+
uses: actions/setup-python@v4
1414

1515
- name: Install dependencies
1616
run: pip3 install -U git+https://github.com/online-judge-tools/verification-helper.git@master
1717

1818

1919
# required only if you want to verify Haskell code
2020
- name: Install dependencies (Haskell)
21-
uses: actions/setup-haskell@v1
21+
uses: haskell/actions/setup@v2
22+
with:
23+
ghc-version: '8.8.4'
24+
cabal-version: '3.0.0.0'
2225

2326
# required only if you want to verify Java code
2427
- name: Install dependencies (Java)
25-
uses: actions/setup-java@v1
28+
uses: actions/setup-java@v3
2629
with:
27-
java-version: 11
30+
distribution: temurin
31+
java-version: '11'
2832

2933
# required only if you want to verify C# script files
30-
- uses: actions/setup-dotnet@v1
34+
- uses: actions/setup-dotnet@v3
3135
with:
3236
dotnet-version: '3.1.101'
3337
- name: Install dependencies (C#)
34-
run: dotnet tool install -g dotnet-script
38+
run: dotnet tool install --global dotnet-script --version 1.4.0
3539

3640
# required only if you want to verify Go code
3741
- name: Install dependencies (Go)
38-
uses: actions/setup-go@v2
42+
uses: actions/setup-go@v4
3943

4044
# required only if you want to verify Ruby code
4145
- name: Install dependencies (Ruby)
42-
uses: actions/setup-ruby@v1
46+
uses: ruby/setup-ruby@v1
47+
with:
48+
ruby-version: '3.0'
4349

4450
# required only if you want to verify Nim code
4551
- name: Install dependencies (Nim)
46-
run: sudo apt install nim
52+
uses: jiro4989/setup-nim-action@v1
53+
with:
54+
nim-version: '1.6.14'
55+
repo-token: ${{ secrets.GITHUB_TOKEN }}
4756

4857
- name: Set up Rust (1.42.0)
4958
uses: actions-rs/toolchain@v1

.verify-helper/timestamps.remote.json

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
11
{
2-
"Examples2/Haskell/HelloWorld.test.hs": "2020-09-17 18:45:17 +0900",
3-
"example.test.cpp": "2019-11-24 04:01:18 +0900",
4-
"examples/awk/circle.test.awk": "2020-09-17 18:25:50 +0900",
5-
"examples/csharpscript/helloworld.test.csx": "2020-02-16 04:29:07 +0900",
6-
"examples/csharpscript/segment_tree.point_set_range_composite.test.csx": "2020-02-16 04:32:52 +0900",
7-
"examples/csharpscript/segment_tree.range_minimum_query.test.csx": "2020-02-16 04:32:52 +0900",
8-
"examples/csharpscript/segment_tree.range_sum_query.test.csx": "2020-02-16 04:32:52 +0900",
9-
"examples/debug/gcc_only.test.cpp": "2020-02-28 16:21:27 +0900",
10-
"examples/debug/include_relative.test.cpp": "2020-02-28 16:21:27 +0900",
11-
"examples/debug/precision.test.cpp": "2020-02-28 16:21:27 +0900",
12-
"examples/debug/relative_path.test.cpp": "2020-03-19 16:25:51 +0900",
13-
"examples/debug/yukicoder.test.cpp": "2020-02-28 16:21:27 +0900",
14-
"examples/go/helloworld.test.go": "2020-09-17 19:04:09 +0900",
15-
"examples/java/HelloWorld_test.java": "2020-09-17 19:34:20 +0900",
16-
"examples/nim/union_find_tree_aoj_test.nim": "2020-09-17 18:25:50 +0900",
17-
"examples/nim/union_find_tree_yosupo_test.nim": "2020-09-17 18:25:50 +0900",
18-
"examples/python/hello_world.test.py": "2020-09-17 18:25:50 +0900",
19-
"examples/python/union_find_aoj.test.py": "2020-09-17 18:25:50 +0900",
20-
"examples/python/union_find_yosupo.test.py": "2020-09-17 18:25:50 +0900",
21-
"examples/rust/verification/src/bin/aizu-online-judge-itp1-1-a.rs": "2020-11-30 13:30:54 +0900",
22-
"examples/rust/verification/src/bin/library-checker-aplusb.rs": "2020-11-30 13:30:54 +0900",
23-
"examples/segment_tree.point_set_range_composite.test.cpp": "2020-09-14 23:28:24 +0900",
24-
"examples/segment_tree.range_minimum_query.test.cpp": "2020-09-14 23:28:24 +0900",
25-
"examples/segment_tree.range_sum_query.test.cpp": "2020-09-14 23:28:24 +0900",
26-
"examples/union_find_tree.aoj.test.cpp": "2019-12-16 05:18:36 +0900",
27-
"examples/union_find_tree.yosupo.test.cpp": "2019-12-16 05:18:36 +0900"
2+
"Examples2/Haskell/HelloWorld.test.hs": "2023-08-12 00:27:19 +0900",
3+
"example.test.cpp": "2023-08-12 00:27:19 +0900",
4+
"examples/awk/circle.test.awk": "2023-08-12 00:27:19 +0900",
5+
"examples/debug/gcc_only.test.cpp": "2023-08-12 00:27:19 +0900",
6+
"examples/debug/include_relative.test.cpp": "2023-08-12 00:27:19 +0900",
7+
"examples/debug/precision.test.cpp": "2023-08-12 00:27:19 +0900",
8+
"examples/debug/relative_path.test.cpp": "2023-08-12 00:27:19 +0900",
9+
"examples/debug/yukicoder.test.cpp": "2023-08-12 00:27:19 +0900",
10+
"examples/java/HelloWorld_test.java": "2023-08-12 00:27:19 +0900",
11+
"examples/nim/union_find_tree_aoj_test.nim": "2023-08-12 00:27:19 +0900",
12+
"examples/nim/union_find_tree_yosupo_test.nim": "2023-08-12 00:27:19 +0900",
13+
"examples/python/hello_world.test.py": "2023-08-12 00:27:19 +0900",
14+
"examples/python/union_find_aoj.test.py": "2023-08-12 00:27:19 +0900",
15+
"examples/python/union_find_yosupo.test.py": "2023-08-12 00:27:19 +0900",
16+
"examples/rust/verification/src/bin/aizu-online-judge-itp1-1-a.rs": "2023-08-12 00:27:19 +0900",
17+
"examples/rust/verification/src/bin/library-checker-aplusb.rs": "2023-08-12 00:27:19 +0900",
18+
"examples/segment_tree.point_set_range_composite.test.cpp": "2023-08-12 00:27:19 +0900",
19+
"examples/segment_tree.range_minimum_query.test.cpp": "2023-08-12 00:27:19 +0900",
20+
"examples/segment_tree.range_sum_query.test.cpp": "2023-08-12 00:27:19 +0900",
21+
"examples/union_find_tree.aoj.test.cpp": "2023-08-12 00:27:19 +0900",
22+
"examples/union_find_tree.yosupo.test.cpp": "2023-08-12 00:27:19 +0900"
2823
}

README.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
$ pip3 install online-judge-verify-helper
2626
```
2727

28-
Python のバージョンは 3.6 以上が必要です。
28+
Python のバージョンは 3.8 以上が必要です。
2929

3030
#### verify 自動実行
3131

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Please read this: <https://online-judge-tools.github.io/verification-helper/inst
2525
$ pip3 install online-judge-verify-helper
2626
```
2727

28-
Python 3.6 or above is required.
28+
Python 3.8 or above is required.
2929

3030
#### Automating the verification
3131

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ classifiers =
77
Intended Audience :: Developers
88
License :: OSI Approved :: MIT License
99
Operating System :: OS Independent
10-
Programming Language :: Python :: 3.5
11-
Programming Language :: Python :: 3.6
10+
Programming Language :: Python :: 3.8
1211
Topic :: Internet :: WWW/HTTP
1312
Topic :: Software Development
1413
Topic :: Utilities

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
url='https://github.com/kmyk/online-judge-verify-helper',
1010
license='MIT License',
1111
description='',
12-
python_requires='>=3.6',
12+
python_requires='>=3.8',
1313
install_requires=[
1414
'colorlog',
1515
'pyyaml',

0 commit comments

Comments
 (0)