Skip to content

Commit 755ee9a

Browse files
committed
Remove Pipenv file. Add test/dev dependencies to pyproject.toml.
1 parent 41aec34 commit 755ee9a

File tree

3 files changed

+15
-26
lines changed

3 files changed

+15
-26
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99

1010
jobs:
1111
test:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313

1414
steps:
1515
- uses: actions/checkout@v4
@@ -19,10 +19,10 @@ jobs:
1919
python-version: "3.9"
2020
- name: Install dependencies
2121
run: |
22+
python -m venv venv
23+
source venv/bin/activate
2224
python -m pip install --upgrade pip
23-
pip install pipenv
24-
pipenv install --dev
25-
pipenv install -e .
25+
pip install -e .[test]
2626
- name: Test with pytest
2727
env: # Add necessary api keys as env variables.
2828
JUDGE0_ATD_API_KEY: ${{ secrets.JUDGE0_ATD_API_KEY }}
@@ -33,4 +33,5 @@ jobs:
3333
JUDGE0_TEST_CE_ENDPOINT: ${{ secrets.JUDGE0_TEST_CE_ENDPOINT }}
3434
JUDGE0_TEST_EXTRA_CE_ENDPOINT: ${{ secrets.JUDGE0_TEST_EXTRA_CE_ENDPOINT }}
3535
run: |
36-
pipenv run pytest -vv tests/
36+
source venv/bin/activate
37+
pytest -vv tests/

Pipfile

Lines changed: 0 additions & 19 deletions
This file was deleted.

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
"Topic :: Software Development :: Libraries :: Python Modules",
2626
"Typing :: Typed",
2727
]
28-
dependencies = ["requests>=2.32.3"]
28+
dependencies = ["requests>=2.28.0,<3.0.0"]
2929

3030
[build-system]
3131
requires = ["setuptools>=70.0"]
@@ -37,7 +37,14 @@ Repository = "https://github.com/judge0/judge0-python.git"
3737
Issues = "https://github.com/judge0/judge0-python/issues"
3838

3939
[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+
]
4148

4249
[tool.flake8]
4350
docstring-convention = "numpy"

0 commit comments

Comments
 (0)