Skip to content

switch from setuptools to hatch; add test workflow #1

switch from setuptools to hatch; add test workflow

switch from setuptools to hatch; add test workflow #1

Workflow file for this run

name: Test testflo
on:
# Trigger on push or pull request events for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allow running the workflow manually from the Actions tab
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
permissions: {}
jobs:
tests:
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
include:
# test on Ubuntu
- NAME: Ubuntu Baseline
OS: ubuntu-latest
PY: '3.11'
# test on MacOS
- NAME: MacOS Baseline
OS: macos-latest
PY: '3.11'
runs-on: ${{ matrix.OS }}
name: ${{ matrix.NAME }}
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.PY }}
- name: Install testflo
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: Run tests
run: |
testflo testflo/tests || RC=$?
if [[! -n `grep "Passed: 7"`]]; then
exit 1
fi
if [[! -n `grep "Failed: 8"`]]; then
exit 1
fi
if [[! -n `grep "Skipped: 11"`]]; then
exit 1
fi
- name: Notify slack of failure
uses: act10ns/[email protected]
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
status: ${{ job.status }}
if: failure()