Skip to content

Merge pull request #43 from cclauss/patch-1 #112

Merge pull request #43 from cclauss/patch-1

Merge pull request #43 from cclauss/patch-1 #112

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
pre-commit:
name: Pre-Commit Checks
runs-on: ubuntu-latest
steps:
- name: Checkout to master
uses: actions/checkout@3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: 'x64'
- name: Pre-Commit Checks
run: |
python -m pip install pip --upgrade
pip install nox
nox -s pre_commit
- name: Analysis (git diff)
if: failure()
run: git diff
package:
name: Build & Verify Package
needs: pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout to master
uses: actions/checkout@3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: 'x64'
- name: Build and check with twine
run: |
python -m pip install pip --upgrade
pip install nox
nox -s package
unit-tests:
name: UnitTests-Python-${{ matrix.python-version }}
needs: [ pre-commit, package ]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 'pypy3.9', '3.7', '3.8', '3.9', '3.10' ]
steps:
- name: Checkout to master
uses: actions/checkout@3
- name: Setup Python-${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Unit Tests
run: |
python -m pip install pip --upgrade
pip install nox
nox -s ci_tests
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: coverage.xml
flags: unittests
name: codecov-linkstatus-{{ matrix.python-version }}
fail_ci_if_error: true
platform:
name: Platform-${{ matrix.os }}
needs: [ unit-tests]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout to master
uses: actions/checkout@3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: 'x64'
- name: Development setup and smoke test on platform ${{ matrix.os }}
run: |
python -m pip install pip --upgrade
pip install nox
nox -s dev_setup