-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 859 Bytes
/
Copy pathpython-app.yml
File metadata and controls
33 lines (30 loc) · 859 Bytes
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
name: Python application
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
# TODO block if pylint < 5/10
# - name: Quality
# run: |
# pylint $(git ls-files '*.py')
# find . -name '*.py' -exec autopep8 --in-place --max-line-length 120 '{}' \;
# sourcery review src/wiktionary/fr_wiktionary_functions.py
- name: Test
run: |
python tests/fr_wiktionary_functions_test.py