Skip to content

Commit c0eacf6

Browse files
committed
Add tests workflow, badges
1 parent 44991c9 commit c0eacf6

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
on: [push, workflow_dispatch]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
7+
strategy:
8+
matrix:
9+
# Run in all these versions of Python
10+
python-version: ['3.8', '3.9', '3.10', '3.11']
11+
12+
steps:
13+
# Checkout the latest code from the repo
14+
- name: Checkout repo
15+
uses: actions/checkout@v2
16+
# Setup which version of Python to use
17+
- name: Set Up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
# Display the Python version being used
22+
- name: Display Python version
23+
run: python -c "import sys; print(sys.version)"
24+
# Install the package using the setup.py
25+
- name: Install package
26+
run: python setup.py install
27+
# Run the tests
28+
- name: Run tests
29+
run: python setup.py test

README.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
Fast Brainfuck interpreter in pure python
2-
=========================================
1+
.. |brain| unicode:: 0x1F9E0
2+
3+
Fast Brainfuck interpreter in pure python |brain|
4+
=================================================
5+
6+
.. |tests_badge| image:: https://github.com/eriknyquist/bfi/actions/workflows/tests.yml/badge.svg
7+
.. |version_badge| image:: https://badgen.net/bfi/v/duckargs
8+
.. |license_badge| image:: https://badgen.net/pypi/license/bfi
9+
.. |downloads_badge| image:: https://static.pepy.tech/badge/bfi
10+
.. |conda_badge| image:: https://img.shields.io/conda/dn/conda-forge/bfi.svg?label=conda-forge
11+
12+
|tests_badge| |version_badge| |license_badge| |downloads_badge| |conda_badge|
313

414
This is a pure python interpreter for the
515
`Brainfuck <https://en.wikipedia.org/wiki/Brainfuck>`_ esoteric programming

0 commit comments

Comments
 (0)