diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 00000000..1a81f7b7 --- /dev/null +++ b/.github/workflows/linting.yml @@ -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 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 00000000..f03e8ede --- /dev/null +++ b/.github/workflows/push.yml @@ -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