-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.32 KB
/
Copy pathpython-app.yml
File metadata and controls
49 lines (46 loc) · 1.32 KB
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
44
45
46
47
48
49
# Curated checks for the maintained root exercises. Historical experiments and
# standalone subprojects have their own validation paths.
name: Python application
on:
push:
branches: ["master"]
paths:
- "music_composer/**"
- "tests/**"
- "calculador.py"
- "formatapendrivelinux.py"
- "requirements.txt"
- ".github/workflows/python-app.yml"
pull_request:
branches: ["master"]
paths:
- "music_composer/**"
- "tests/**"
- "calculador.py"
- "formatapendrivelinux.py"
- "requirements.txt"
- ".github/workflows/python-app.yml"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install flake8
- name: Check maintained source
run: >-
flake8 music_composer tests calculador.py formatapendrivelinux.py
--count --select=E9,F63,F7,F82 --show-source --statistics
- name: Run maintained tests
run: python -m pytest -q tests