Skip to content

Commit

Permalink
Add github workflow to run dex --test
Browse files Browse the repository at this point in the history
--verbose is now passed to doctest runner.

Add github actions badge for tests..
  • Loading branch information
stuaxo committed Sep 27, 2024
1 parent 9ff05a8 commit c738261
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: test

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: python dex --test --verbose
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
dex
===

.. image:: /~https://github.com/jceb/dex/actions/workflows/test.yml/badge.svg?branch={{ github.ref }}
:target: /~https://github.com/jceb/dex/actions
:alt: Test Status

Synopsis
--------

Expand Down

0 comments on commit c738261

Please sign in to comment.