Skip to content

Commit

Permalink
Fix not support python36 python39 (#6)
Browse files Browse the repository at this point in the history
* Change github action.

* Change github action.

* Cancel support python 3.6 and 3.7.

* Use optional instead of |.
  • Loading branch information
ste1hi authored Apr 28, 2024
1 parent e4445ca commit b036599
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: check

on:
push:
branches: [master]
paths:
- "OiRunner/**"
- "tests/**"
- "setup.py"
- ".github/workflows/**"
pull_request:
paths:
- "OiRunner/**"
Expand All @@ -14,7 +18,7 @@ jobs:
build:
strategy:
matrix:
python-version: ['3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
Expand Down
3 changes: 2 additions & 1 deletion OiRunner/BetterRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import shutil
import time
from typing import Optional


class Functions:
Expand Down Expand Up @@ -127,7 +128,7 @@ def compile(self) -> None:
sys.exit()

def _check(self, opt_file: str, ipt_file: str, ans_file: str,
file_num: int = 0, run_file: str | None = None, if_print: bool | None = None) -> bool:
file_num: int = 0, run_file: Optional[str] = None, if_print: Optional[bool] = None) -> bool:
'''
Local evaluation and get results.
Expand Down

0 comments on commit b036599

Please sign in to comment.