Add REUSE CI #63
This file contains hidden or 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-FileCopyrightText: 2019-2025 Sébastien Helleu <[email protected]> | |
# | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
name: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-24.04 | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get install gettext aspell aspell-fr enchant-2 | |
pip install -r requirements.txt | |
pip install bandit coverage flake8 pylint pytest pytest-cov | |
- name: Lint with flake8 | |
run: make flake8 | |
- name: Lint with pylint | |
run: make pylint | |
- name: Lint with bandit | |
run: make bandit | |
- name: Test with pytest | |
run: make test |