Skip to content

Commit

Permalink
Add basic CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
phansch committed Apr 12, 2024
1 parent 346fb85 commit 4d9dfa1
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI
on: pull_request

jobs:
ci:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Run image
uses: abatilo/actions-poetry@v2
- name: Install packages
run: poetry install
- name: Prep mypy
run: poetry run mypy --install-types
- name: Run mypy
run: poetry run mypy api-fetcher
70 changes: 69 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ python = "^3.12"
requests = "^2.31.0"
beautifulsoup4 = "^4.12.3"

[tool.poetry.group.dev.dependencies]
mypy = "*"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
fetcher = "api-fetcher.main:run"
download = "scraper.core:test"

0 comments on commit 4d9dfa1

Please sign in to comment.