Skip to content

Merge pull request #41 from digitronik/readme #86

Merge pull request #41 from digitronik/readme

Merge pull request #41 from digitronik/readme #86

Workflow file for this run

name: πŸ•΅οΈ Test suite
on:
push:
branches:
- master
pull_request:
types: ["opened", "synchronize", "reopened"]
schedule:
# Run every Friday at 23:59 UTC
- cron: 59 23 * * 5
jobs:
pre-commit:
name: Pre-Commit Checks
runs-on: ubuntu-latest
steps:
- name: Checkout to master
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
- name: Pre-Commit Checks
run: |
python -m pip install pre-commit
pre-commit run -a
- name: Analysis (git diff)
if: failure()
run: git diff
tests:
name: 🐍 Python-${{ matrix.python-version }}
needs: pre-commit
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10' ]
steps:
- name: Checkout to master
uses: actions/checkout@master
- name: Setup Python-${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Setup Package and Install Devel Dependancies
run: |
python -m pip install .[dev]
- name: Unit Tests
run: |
py.test tests -vv