Debian Codegraph @

testing/web-platform/tests/tools/third_party/packaging/.github/workflows/lint.yml

raw
1 name: Linting
2
3 on:
4 pull_request:
5 paths:
6 - "**.py"
7 push:
8 paths:
9 - "**.py"
10
11 jobs:
12 lint:
13 name: nox -s lint
14 runs-on: ubuntu-latest
15
16 steps:
17 - uses: actions/checkout@v1
18
19 - uses: actions/setup-python@v2
20 name: Install Python
21 with:
22 python-version: "3.9"
23
24 - name: Install dependencies
25 run: |
26 python -m pip install --upgrade pip
27 python -m pip install --upgrade nox
28
29 - name: Run `nox -s lint`
30 run: python -m nox -s lint
31
32 build:
33 name: Build sdist and wheel
34 runs-on: ubuntu-latest
35 # Linting verifies that the project is in an acceptable state to create files
36 # for releasing.
37 # And this action should be run whenever a release is ready to go public as
38 # the version number will be changed by editing __about__.py.
39 needs: lint
40
41 steps:
42 - uses: actions/checkout@v1
43
44 - uses: actions/setup-python@v2
45 name: Install Python
46 with:
47 python-version: "3.9"
48
49 - name: Install dependencies
50 run: python -m pip install --upgrade build
51
52 - name: Build
53 run: pyproject-build
54
55 - name: Archive files
56 uses: actions/upload-artifact@v1
57 with:
58 name: dist
59 path: dist