-
-
Notifications
You must be signed in to change notification settings - Fork 25
35 lines (27 loc) · 825 Bytes
/
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
name: Quality & Tests
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
- name: Install requirements
run: python -m pip install -r requirements-tests.txt
- name: Quality checks, and linters
run: ./check.sh
- name: Unit tests
run: python -Wd -m pytest tests --doctest-modules wikidict
- name: Automerge
if: ${{ github.actor == 'dependabot[bot]' }}
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}