Merge pull request #41 from digitronik/readme #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |