Manual update from ferrocene/ferrocene #176
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v4 | |
# 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 . |