-
Notifications
You must be signed in to change notification settings - Fork 121
43 lines (42 loc) · 1.5 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Python Package Pytest
on: [push]
jobs:
test-all:
runs-on: ubuntu-latest
env:
SHOPPING: "http://ec2-3-131-244-37.us-east-2.compute.amazonaws.com:7770"
SHOPPING_ADMIN: "http://ec2-3-131-244-37.us-east-2.compute.amazonaws.com:7780/admin"
REDDIT: "http://ec2-3-131-244-37.us-east-2.compute.amazonaws.com:9999"
GITLAB: "http://ec2-3-131-244-37.us-east-2.compute.amazonaws.com:8023"
MAP: "http://ec2-3-131-244-37.us-east-2.compute.amazonaws.com:3000"
WIKIPEDIA: "http://ec2-3-131-244-37.us-east-2.compute.amazonaws.com:8888/wikipedia_en_all_maxi_2022-05/A/User:The_other_Kiwix_guy/Landing"
HOMEPAGE: "PASS"
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.10.9
- name: Install dependencies
run: |
pip install -r requirements.txt
playwright install
python -m nltk.downloader punkt stopwords
pip install -e .[dev]
- name: Type-checking package with mypy
run: |
# Manually install mypy in the standard way.
pip --quiet install -U mypy
# Log this mypy version for debuggability.
mypy --version
# Run this mypy instance against our main package.
mypy --install-types --non-interactive .
mypy --strict . --exclude scripts
- name: Enviroment prepare
run: |
bash prepare.sh
- name: Test with pytest
run: |
pytest