-
-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (44 loc) · 1.09 KB
/
ci.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
branches:
- master
tags:
- '**'
pull_request:
jobs:
# check_version:
# name: check vesion
# runs-on: ubuntu-latest
# steps:
# - name: check GITHUB_REF matches package version
# uses: samuelcolvin/check-python-version@v3.2
# with:
# version_file_path: httpfpt/__init__.py
lint:
runs-on: ubuntu-latest
name: lint ${{ matrix.python-version }}
strategy:
matrix:
python-version: ['3.10']
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: pre-commit
uses: pre-commit/action@v3.0.0
with:
extra_args: --all-files --verbose
- name: pyright
uses: jakebailey/pyright-action@v1
with:
project: .
verbose: true