-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (40 loc) · 1.19 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
name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Python unit tests
run: |
coverage run --source danker -m pytest test/
- name: Coveralls
uses: coverallsapp/github-action@v2
- name: Shellcheck
run: |
shellcheck -V
shellcheck *.sh */*.sh
- name: Run on test graphs
run: |
python3 -m danker test/graphs/bar-20190301.links 0.85 10 1 -p 5 -i > /dev/null
- name: Run on small live graphs
run: |
./danker.sh ch
./danker.sh ALL -p test -i 3
./danker.sh sk --project wikisource
./danker.sh cv --project wikibooks
./danker.sh th --project wikinews
./danker.sh hi --project wikiversity
./danker.sh uz --project wikiquote
./danker.sh ast --project wiktionary