keep sitelinks on rpi #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ch -p wiki -f ./test/dump -t 20240120 | |
./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 |