-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.08 KB
/
pr.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
name: pr-build
on:
workflow_dispatch:
pull_request:
types:
- labeled
- opened
- synchronize
- reopened
jobs:
test_imports:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install pipenv
run: python -m pip install --upgrade pip && pip install pipenv -q
- name: Cache pipenv
id: cache-pipenv
uses: actions/[email protected]
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-public-${{ hashFiles('**/Pipfile.lock') }}
- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv sync -d
- name: pylink checker for imports
run: pipenv run pylint --disable=all --enable=import-error --jobs=3 tests src utils