fix(ci): test
This commit is contained in:
parent
f148f77ec6
commit
ddff996ee2
3 changed files with 3 additions and 3 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -61,4 +61,4 @@ jobs:
|
||||||
- name: Install dependencies with pytest
|
- name: Install dependencies with pytest
|
||||||
run: uv sync --dev
|
run: uv sync --dev
|
||||||
- name: Run Python tests
|
- name: Run Python tests
|
||||||
run: PYTHONPATH=. uv run pytest tests/scrapers/ -v
|
run: cd scrapers && PYTHONPATH=.. uv run pytest ../tests/scrapers/ -v
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ from dataclasses import asdict
|
||||||
import cloudscraper
|
import cloudscraper
|
||||||
from bs4 import BeautifulSoup, Tag
|
from bs4 import BeautifulSoup, Tag
|
||||||
|
|
||||||
from scrapers.models import MetadataResult, ProblemSummary, TestCase, TestsResult
|
from models import MetadataResult, ProblemSummary, TestCase, TestsResult
|
||||||
|
|
||||||
|
|
||||||
def scrape(url: str) -> list[TestCase]:
|
def scrape(url: str) -> list[TestCase]:
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ from dataclasses import asdict
|
||||||
import requests
|
import requests
|
||||||
from bs4 import BeautifulSoup, Tag
|
from bs4 import BeautifulSoup, Tag
|
||||||
|
|
||||||
from scrapers.models import MetadataResult, ProblemSummary, TestCase, TestsResult
|
from models import MetadataResult, ProblemSummary, TestCase, TestsResult
|
||||||
|
|
||||||
|
|
||||||
def parse_problem_url(problem_input: str) -> str | None:
|
def parse_problem_url(problem_input: str) -> str | None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue