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 workflows, use newer version of Python #416

Merged
merged 2 commits into from
Aug 12, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.8'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4

- name: Install dependencies
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.6
python-version: '3.8'

- name: Install dependencies
run: pip install .[dev]
Expand Down
29 changes: 19 additions & 10 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,52 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4

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


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

# required only if you want to verify Java code
- name: Install dependencies (Java)
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
java-version: '11'

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

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

# required only if you want to verify Ruby code
- name: Install dependencies (Ruby)
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

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

- name: Set up Rust (1.42.0)
uses: actions-rs/toolchain@v1
Expand Down
47 changes: 21 additions & 26 deletions .verify-helper/timestamps.remote.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
{
"Examples2/Haskell/HelloWorld.test.hs": "2020-09-17 18:45:17 +0900",
"example.test.cpp": "2019-11-24 04:01:18 +0900",
"examples/awk/circle.test.awk": "2020-09-17 18:25:50 +0900",
"examples/csharpscript/helloworld.test.csx": "2020-02-16 04:29:07 +0900",
"examples/csharpscript/segment_tree.point_set_range_composite.test.csx": "2020-02-16 04:32:52 +0900",
"examples/csharpscript/segment_tree.range_minimum_query.test.csx": "2020-02-16 04:32:52 +0900",
"examples/csharpscript/segment_tree.range_sum_query.test.csx": "2020-02-16 04:32:52 +0900",
"examples/debug/gcc_only.test.cpp": "2020-02-28 16:21:27 +0900",
"examples/debug/include_relative.test.cpp": "2020-02-28 16:21:27 +0900",
"examples/debug/precision.test.cpp": "2020-02-28 16:21:27 +0900",
"examples/debug/relative_path.test.cpp": "2020-03-19 16:25:51 +0900",
"examples/debug/yukicoder.test.cpp": "2020-02-28 16:21:27 +0900",
"examples/go/helloworld.test.go": "2020-09-17 19:04:09 +0900",
"examples/java/HelloWorld_test.java": "2020-09-17 19:34:20 +0900",
"examples/nim/union_find_tree_aoj_test.nim": "2020-09-17 18:25:50 +0900",
"examples/nim/union_find_tree_yosupo_test.nim": "2020-09-17 18:25:50 +0900",
"examples/python/hello_world.test.py": "2020-09-17 18:25:50 +0900",
"examples/python/union_find_aoj.test.py": "2020-09-17 18:25:50 +0900",
"examples/python/union_find_yosupo.test.py": "2020-09-17 18:25:50 +0900",
"examples/rust/verification/src/bin/aizu-online-judge-itp1-1-a.rs": "2020-11-30 13:30:54 +0900",
"examples/rust/verification/src/bin/library-checker-aplusb.rs": "2020-11-30 13:30:54 +0900",
"examples/segment_tree.point_set_range_composite.test.cpp": "2020-09-14 23:28:24 +0900",
"examples/segment_tree.range_minimum_query.test.cpp": "2020-09-14 23:28:24 +0900",
"examples/segment_tree.range_sum_query.test.cpp": "2020-09-14 23:28:24 +0900",
"examples/union_find_tree.aoj.test.cpp": "2019-12-16 05:18:36 +0900",
"examples/union_find_tree.yosupo.test.cpp": "2019-12-16 05:18:36 +0900"
"Examples2/Haskell/HelloWorld.test.hs": "2023-08-12 00:27:19 +0900",
"example.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/awk/circle.test.awk": "2023-08-12 00:27:19 +0900",
"examples/debug/gcc_only.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/debug/include_relative.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/debug/precision.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/debug/relative_path.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/debug/yukicoder.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/java/HelloWorld_test.java": "2023-08-12 00:27:19 +0900",
"examples/nim/union_find_tree_aoj_test.nim": "2023-08-12 00:27:19 +0900",
"examples/nim/union_find_tree_yosupo_test.nim": "2023-08-12 00:27:19 +0900",
"examples/python/hello_world.test.py": "2023-08-12 00:27:19 +0900",
"examples/python/union_find_aoj.test.py": "2023-08-12 00:27:19 +0900",
"examples/python/union_find_yosupo.test.py": "2023-08-12 00:27:19 +0900",
"examples/rust/verification/src/bin/aizu-online-judge-itp1-1-a.rs": "2023-08-12 00:27:19 +0900",
"examples/rust/verification/src/bin/library-checker-aplusb.rs": "2023-08-12 00:27:19 +0900",
"examples/segment_tree.point_set_range_composite.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/segment_tree.range_minimum_query.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/segment_tree.range_sum_query.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/union_find_tree.aoj.test.cpp": "2023-08-12 00:27:19 +0900",
"examples/union_find_tree.yosupo.test.cpp": "2023-08-12 00:27:19 +0900"
}
2 changes: 1 addition & 1 deletion README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$ pip3 install online-judge-verify-helper
```

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

#### verify 自動実行

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Please read this: <https://online-judge-tools.github.io/verification-helper/inst
$ pip3 install online-judge-verify-helper
```

Python 3.6 or above is required.
Python 3.8 or above is required.

#### Automating the verification

Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ classifiers =
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.8
Topic :: Internet :: WWW/HTTP
Topic :: Software Development
Topic :: Utilities
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
url='https://github.com/kmyk/online-judge-verify-helper',
license='MIT License',
description='',
python_requires='>=3.6',
python_requires='>=3.8',
install_requires=[
'colorlog',
'pyyaml',
Expand Down