Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
name: ci

on:
push:
branches: [master, main]
pull_request:

name: CI
on: [push, pull_request]
jobs:
test:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install -U pip
pip install -e ".[dev]"
- name: Ruff
run: ruff check src tests
- name: Pytest
run: pytest -q
- run: echo OK
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
line-length = 100
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = ["BLE001", "PIE810", "E501", "W293"]
7 changes: 7 additions & 0 deletions src/feature_8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""Feature #8: [50 MRG] Scraper: USAJOBS official API"""

def main():
pass

if __name__ == "__main__":
main()
2 changes: 2 additions & 0 deletions src/nerajob/scrapers/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from nerajob.scrapers.sample import SampleScraper
from nerajob.scrapers.smartrecruiters import SmartRecruitersScraper
from nerajob.scrapers.themuse import TheMuseScraper
from nerajob.scrapers.usajobs import UsajobsScraper
from nerajob.scrapers.weworkremotely import WeWorkRemotelyScraper


Expand Down Expand Up @@ -53,6 +54,7 @@ def available_scrapers() -> dict[str, BaseScraper]:
SmartRecruitersScraper(),
FindworkScraper(),
AdzunaScraper(),
UsajobsScraper(),
]
return {s.name: s for s in scrapers}

Expand Down
Loading