-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 894 Bytes
/
python.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: Python
on:
push:
branches:
- main
- 'v[0-9]+.[0-9]+'
pull_request:
branches:
- main
- 'v[0-9]+.[0-9]+'
jobs:
qa:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set Python ${{ matrix.python-version }} environment up
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install development dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r dev-requirements.txt
- name: Check Python code formatting with Black
run: |
black --check --quiet .
- name: Lint Python code with Flake8
run: flake8
- name: Test with Pytest
run: |
pytest