-
Notifications
You must be signed in to change notification settings - Fork 9
37 lines (31 loc) · 1.02 KB
/
Copy pathpython-app.yml
File metadata and controls
37 lines (31 loc) · 1.02 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
# Pull requests get the checks that can pass without a live workspace. The
# sandbox suite needs the CI project's credentials and an allowed IP, so it
# runs on a schedule in sandbox-suite.yml instead of blocking every review.
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.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Compile every module
run: python -m compileall -q starkbank tests
- name: Import the package
run: python -c "import starkbank"
- name: Syntax errors and undefined names
run: flake8 starkbank --count --select=E9,F63,F7,F82 --show-source --statistics