-
Notifications
You must be signed in to change notification settings - Fork 27
59 lines (46 loc) · 1.44 KB
/
lint.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
51
52
53
54
55
56
57
58
59
name: Lint
on:
push
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update Pip
run: |
pip install --requirement=requirements.txt pip
pip --version
- name: Update Pip in virtual environments
shell: python
run: |
import os
import pip
with open(os.environ["GITHUB_ENV"], mode="a") as io:
print(f"VIRTUALENV_PIP={pip.__version__}", file=io)
- name: Install Pipx
run: |
pip install --requirement=requirements.txt pipx
pipx --version
- name: Install Poetry
run: |
pipx install --pip-args=--requirement=requirements.txt poetry
poetry --version
- name: Install Nox
run: |
pipx install --pip-args=--requirement=requirements.txt nox
nox --version
- name: Run Nox workflow
run: |
nox -p ${{ matrix.python-version }}
env:
DOCSEARCH_APP_ID: ${{ vars.DOCSEARCH_APP_ID }}
DOCSEARCH_API_KEY: ${{ vars.DOCSEARCH_API_KEY }}
DOCSEARCH_INDEX_NAME: ${{ vars.DOCSEARCH_INDEX_NAME }}