-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1 KB
/
python-checks.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
32
33
34
35
36
37
38
39
40
41
42
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run Checks on Code
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Lint & Test for ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
max-parallel: 2
# fail-fast: true
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}-dev
- name: Install dependencies
run: |
make bootstrap
make dev
- name: Lint with flake8
run: make lint
continue-on-error: true
- name: Test with pytest
run: make test