Skip to content

Commit

Permalink
First attempt of getting github actions to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Dec 18, 2023
1 parent 5461ecf commit 0dfa855
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: random2

on:
push:
pull_request:
schedule:
- cron: '0 12 * * 0' # run once a week on Sunday
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']

steps:

- name: Check out source
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
12 changes: 12 additions & 0 deletions README.txt → README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
Random 2
========

.. image:: https://github.com/strichter/random2/actions/workflows/test.yml/badge.svg
:target: https://github.com/strichter/random2/actions

.. image:: https://coveralls.io/repos/github/strichter/random2/badge.svg?branch=master
:target: https://coveralls.io/github/strichter/random2?branch=master

.. image:: https://img.shields.io/pypi/v/random2.svg
:target: https://pypi.python.org/pypi/random2

.. image:: https://img.shields.io/pypi/pyversions/random2.svg
:target: https://pypi.python.org/pypi/random2/

This package provides a Python 3 ported version of Python 2.7's ``random``
module. It has also been back-ported to work in Python 2.6.

Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
envlist =
py310,py311,py312,py313

[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313

[testenv]
commands =
python src/tests.py
Expand Down

0 comments on commit 0dfa855

Please sign in to comment.