Skip to content

Commit

Permalink
Better Github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bartTC committed Aug 13, 2024
1 parent 28db8fb commit b37797a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Code Quality Checks

on:
push:

jobs:
linting:
name: Code Quality Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Install Dependencies
run: pip install ruff

- name: Code Linting
if: always()
run: ruff check qrcode

- name: Code Formatting
if: always()
run: ruff format --check qrcode
25 changes: 25 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Testsuite Run

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
pip install --disable-pip-version-check tox tox-gh-actions
- name: Test with tox
run: tox

0 comments on commit b37797a

Please sign in to comment.