Skip to content

Commit

Permalink
Update Python version (#271)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
firewood committed Aug 19, 2023
1 parent f39d5ea commit af3aec3
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/stylecheck.yml
Expand Up @@ -13,14 +13,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3.6
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: 3.11

- name: Install Poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
curl -sSL https://install.python-poetry.org | python3 -
- name: Add path for Poetry
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/tests.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.6, 3.8 ]
python-version: [ '3.8', '3.11' ]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -23,7 +23,7 @@ jobs:

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

- name: Install Jilia
uses: julia-actions/setup-julia@v1
with:
version: 1.9.2

- name: Install nim
uses: iffy/install-nim@v4
with:
version: 1.6.14

- name: Install other compilers
run: |
sudo apt-get update
sudo apt-get install nim mono-complete julia
sudo apt-get install mono-complete
- name: Run Unit Tests and Integration Tests
run: |
Expand Down
35 changes: 16 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -26,7 +26,7 @@ twine = "^3.4.1"
flake8 = "^3.9.1"
autopep8 = "^1.5.6"
codecov = "^2.1.11"
nose = "^1.3.7"
pynose = "^1.4.8"

[tool.poetry.scripts]
atcoder-tools = 'atcodertools.atcoder_tools:main'
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/test_setter/ans/main.java
Expand Up @@ -3,7 +3,7 @@

class Main {

// 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)
// 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)
public static void main(String[] args) throws Exception {
final Scanner sc = new Scanner(System.in);
long T;
Expand Down

0 comments on commit af3aec3

Please sign in to comment.