Skip to content

Commit

Permalink
ci: define initial CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
b-fein committed May 27, 2024
1 parent 72e44f6 commit 5fa66be
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":automergeMinor",
":automergePatch",
":automergePr",
":automergeRequireAllStatusChecks",
":semanticCommits"
],
"platformAutomerge": true
}
3 changes: 3 additions & 0 deletions .github/renovate.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 Artemis UniPassau Utility Scripts Contributors

SPDX-License-Identifier: CC0-1.0
47 changes: 47 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# SPDX-FileCopyrightText: 2024 Artemis UniPassau Utility Scripts Contributors
#
# SPDX-License-Identifier: EUPL-1.2

name: Lint
on: [push, pull_request]

jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
poetry-version: ["latest"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup Poetry
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Install dependencies
run: poetry install

- name: Check imports with isort
run: poetry run isort --check-only src --profile black

- name: Check formatting with black
run: poetry run black --diff --check src

- name: Check typing with mypy
run: poetry run mypy src

- name: General linting with ruff
run: poetry run ruff src

- name: Check reuse
run: poetry run reuse lint

0 comments on commit 5fa66be

Please sign in to comment.