-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (28 loc) · 943 Bytes
/
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
# SPDX-License-Identifier: MIT OR Apache-2.0
# SPDX-FileCopyrightText: The Ferrocene Developers
---
name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
name: Lints
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
# Some Ferrocene builders require the use of Python 3.9. Use that on CI
# to make sure there are no surprises when we import into Ferrocene.
- uses: actions/setup-python@v3
with:
python-version: "3.9.x"
- name: Check that the requirements are installable
run: python3 -m pip install -r requirements.txt
- name: Install linting dependencies
run: python3 -m pip install reuse black flake8
- name: Verify licensing metadata
run: reuse lint
- name: Verify Python code formatting
run: black . --check --diff --color
- name: Lint Python code with flake8
run: flake8 .