Skip to content

Commit a9d42c7

Browse files
authored
Merge pull request #1 from elvisboghiu/master
Master
2 parents 586bf53 + 47918fb commit a9d42c7

File tree

18 files changed

+1880
-1
lines changed

18 files changed

+1880
-1
lines changed

.github/workflows/tests.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [ main, master, develop ]
6+
pull_request:
7+
branches: [ main, master, develop ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.9'
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
28+
- name: Install Playwright browsers
29+
run: playwright install --with-deps
30+
31+
- name: Run tests
32+
run: |
33+
python -m pytest --html=reports/report.html --self-contained-html -v
34+
continue-on-error: true
35+
env:
36+
PYTHONPATH: ${{ github.workspace }}
37+
38+
- name: Upload test results
39+
uses: actions/upload-artifact@v4
40+
if: always()
41+
with:
42+
name: test-results
43+
path: |
44+
reports/
45+
test-results/
46+
retention-days: 30

.gitignore

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
.Python
7+
build/
8+
develop-eggs/
9+
dist/
10+
downloads/
11+
eggs/
12+
.eggs/
13+
lib/
14+
lib64/
15+
parts/
16+
sdist/
17+
var/
18+
wheels/
19+
*.egg-info/
20+
.installed.cfg
21+
*.egg
22+
23+
# Virtual Environment
24+
.venv/
25+
venv/
26+
ENV/
27+
env/
28+
29+
# IDE
30+
.vscode/
31+
.idea/
32+
*.swp
33+
*.swo
34+
*~
35+
36+
# Testing
37+
.pytest_cache/
38+
.coverage
39+
htmlcov/
40+
*.cover
41+
.hypothesis/
42+
43+
# Reports
44+
reports/
45+
*.html
46+
*.xml
47+
48+
# Environment variables
49+
.env
50+
51+
# Playwright
52+
playwright-report/
53+
test-results/
54+
playwright/.cache/
55+
56+
# OS
57+
.DS_Store
58+
Thumbs.db

0 commit comments

Comments
 (0)