forked from konflux-ci/release-service-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 852 Bytes
/
python.yaml
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
---
name: Python Checks for Pull Requests
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
python:
runs-on: ubuntu-latest
steps:
- name: Install OS packages
# libkrb5-dev is required for gssapi dependency installation (krb5-config command)
run: |
sudo apt-get -y update
sudo apt-get install -y libkrb5-dev
- name: Check out repo
uses: actions/checkout@v4
- name: Black Lint
uses: psf/black@stable
- name: Setup python environment for flake8 check
uses: actions/setup-python@v5
with:
python-version: "3.9" # Same as in Dockerfile
- name: flake8 Lint
uses: py-actions/flake8@v2
- name: Run pytest
run: |
python -m pip install -r requirements.txt
pytest