File tree Expand file tree Collapse file tree 3 files changed +15
-26
lines changed Expand file tree Collapse file tree 3 files changed +15
-26
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ permissions:
9
9
10
10
jobs :
11
11
test :
12
- runs-on : ubuntu-latest
12
+ runs-on : ubuntu-24.04
13
13
14
14
steps :
15
15
- uses : actions/checkout@v4
@@ -19,10 +19,10 @@ jobs:
19
19
python-version : " 3.9"
20
20
- name : Install dependencies
21
21
run : |
22
+ python -m venv venv
23
+ source venv/bin/activate
22
24
python -m pip install --upgrade pip
23
- pip install pipenv
24
- pipenv install --dev
25
- pipenv install -e .
25
+ pip install -e .[test]
26
26
- name : Test with pytest
27
27
env : # Add necessary api keys as env variables.
28
28
JUDGE0_ATD_API_KEY : ${{ secrets.JUDGE0_ATD_API_KEY }}
33
33
JUDGE0_TEST_CE_ENDPOINT : ${{ secrets.JUDGE0_TEST_CE_ENDPOINT }}
34
34
JUDGE0_TEST_EXTRA_CE_ENDPOINT : ${{ secrets.JUDGE0_TEST_EXTRA_CE_ENDPOINT }}
35
35
run : |
36
- pipenv run pytest -vv tests/
36
+ source venv/bin/activate
37
+ pytest -vv tests/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ classifiers = [
25
25
" Topic :: Software Development :: Libraries :: Python Modules" ,
26
26
" Typing :: Typed" ,
27
27
]
28
- dependencies = [" requests>=2.32.3 " ]
28
+ dependencies = [" requests>=2.28.0,<3.0.0 " ]
29
29
30
30
[build-system ]
31
31
requires = [" setuptools>=70.0" ]
@@ -37,7 +37,14 @@ Repository = "https://github.com/judge0/judge0-python.git"
37
37
Issues = " https://github.com/judge0/judge0-python/issues"
38
38
39
39
[project .optional-dependencies ]
40
- test = [" pytest" , " mkdocs" ]
40
+ test = [
41
+ " ufmt==2.7.3" ,
42
+ " pre-commit==3.8.0" ,
43
+ " pytest==8.3.3" ,
44
+ " python-dotenv==1.0.1" ,
45
+ " pytest-cov==6.0.0" ,
46
+ " flake8-docstrings==1.7.0" ,
47
+ ]
41
48
42
49
[tool .flake8 ]
43
50
docstring-convention = " numpy"
You can’t perform that action at this time.
0 commit comments