From d5303c55947361965e5dc728ba6d5037e4a0258c Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 9 Sep 2025 13:43:30 +0200 Subject: [PATCH] chore: add github actions --- .github/workflows/code-quality.yaml | 24 ++++++++++++++++++++++++ .github/workflows/run-tests.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/code-quality.yaml create mode 100644 .github/workflows/run-tests.yaml diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml new file mode 100644 index 0000000..a27f824 --- /dev/null +++ b/.github/workflows/code-quality.yaml @@ -0,0 +1,24 @@ +name: Code Quality +on: + push: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v5 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + + - name: Run lint + run: | + pylint --errors-only $(git ls-files '*.py') diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..d4f867c --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -0,0 +1,26 @@ +name: Run tests +on: + push: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v5 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: | + pip install pytest + pytest +