Skip to content

Commit af3aec3

Browse files
authored
Update Python version (#271)
* Update Python - remove Python 3.6 - add Python 3.11 * Fix nim and Julia installation * Update codecov * Use pynose for Python 3.11 * fix test * Update to Python 3.11 * Fix nim and Julia version
1 parent f39d5ea commit af3aec3

File tree

5 files changed

+34
-27
lines changed

5 files changed

+34
-27
lines changed

.github/workflows/stylecheck.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v2
1515

16-
- name: Set up Python 3.6
16+
- name: Set up Python 3.11
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.6
19+
python-version: 3.11
2020

2121
- name: Install Poetry
2222
run: |
23-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
23+
curl -sSL https://install.python-poetry.org | python3 -
2424
2525
- name: Add path for Poetry
2626
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH

.github/workflows/tests.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [ 3.6, 3.8 ]
14+
python-version: [ '3.8', '3.11' ]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Install Poetry
2525
run: |
26-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
26+
curl -sSL https://install.python-poetry.org | python3 -
2727
2828
- name: Add path for Poetry
2929
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH
@@ -37,10 +37,20 @@ jobs:
3737
with:
3838
compiler: dmd-latest
3939

40+
- name: Install Jilia
41+
uses: julia-actions/setup-julia@v1
42+
with:
43+
version: 1.9.2
44+
45+
- name: Install nim
46+
uses: iffy/install-nim@v4
47+
with:
48+
version: 1.6.14
49+
4050
- name: Install other compilers
4151
run: |
4252
sudo apt-get update
43-
sudo apt-get install nim mono-complete julia
53+
sudo apt-get install mono-complete
4454
4555
- name: Run Unit Tests and Integration Tests
4656
run: |

poetry.lock

Lines changed: 16 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ twine = "^3.4.1"
2626
flake8 = "^3.9.1"
2727
autopep8 = "^1.5.6"
2828
codecov = "^2.1.11"
29-
nose = "^1.3.7"
29+
pynose = "^1.4.8"
3030

3131
[tool.poetry.scripts]
3232
atcoder-tools = 'atcodertools.atcoder_tools:main'

tests/resources/test_setter/ans/main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class Main {
55

6-
// Generated by 2.11.0 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
6+
// Generated by 2.12.0 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
77
public static void main(String[] args) throws Exception {
88
final Scanner sc = new Scanner(System.in);
99
long T;

0 commit comments

Comments
 (0)