Skip to content

Commit

Permalink
added tests, updated CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey-Barinov committed May 4, 2024
1 parent a04b13a commit e1ac8cc
Show file tree
Hide file tree
Showing 5 changed files with 437 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pyci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ jobs:
run: |
pip install poetry
make install
- name: Run linter
# - name: Run linter and pytest
- name: Run linter and pytest
run: |
make check
# - name: Test & publish code coverage
Expand Down
265 changes: 264 additions & 1 deletion poetry.lock

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

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ psycopg2-binary = "^2.9.9"
validators = "^0.28.0"
requests = "^2.31.0"
beautifulsoup4 = "^4.12.3"
celery = "^5.4.0"
redis = "^5.0.4"


[tool.poetry.group.dev.dependencies]
Expand Down
19 changes: 19 additions & 0 deletions tests/fixtures/database.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
DROP TABLE IF EXISTS url_checks;
DROP TABLE IF EXISTS urls;

CREATE TABLE urls (
id SERIAL PRIMARY KEY,
name varchar(255) UNIQUE NOT NULL,
created_at date DEFAULT CURRENT_DATE
);

CREATE TABLE url_checks (
id SERIAL PRIMARY KEY,
url_id int,
status_code int,
h1 varchar(255),
title varchar(255),
description text,
created_at date DEFAULT CURRENT_DATE
)

Loading

0 comments on commit e1ac8cc

Please sign in to comment.