Skip to content

Chore: Modernise infrastructure #154

Chore: Modernise infrastructure

Chore: Modernise infrastructure #154

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: "0 0 * * 0"
jobs:
tests:
name: Tests
strategy:
matrix:
os: [ "ubuntu-latest", "macos-13", "windows-latest" ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
fail-fast: false
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Hatch
run: pipx install hatch
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run Tests
run: hatch run test
- name: Coverage Results
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
format: python
flag-name: ${{ matrix.os }}-${{ matrix.python-version }}
parallel: true
coverage:
name: Coverage
needs: tests
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true