fdiblen / example-python-1

Python package called `justatest` with self-hosted GH Action workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example repo for a GitHub self-hosted runner

Contains a Python package called justatest and a unit test for it.

To test with your own runner

  1. Duplicate this repo
  2. Change visibility to private
  3. Set up runner as described in https://github.com/ci-for-research/self-hosted-runners
  4. Make change to repo to trigger GitHub Action workflow to run.

Install

poetry install

Usage

from justatest import sum
assert sum(2, 4) == 6

Run tests

poetry run pytest tests

About

Python package called `justatest` with self-hosted GH Action workflow

License:Apache License 2.0


Languages

Language:Python 100.0%