GitHub Action
Python Unit Test
0.0.0
Pre-release
Github action that tests python package. Currently only works with unittest.
- This action assumes that a comprehensive dependency list exists in the project. The location of such list can be specified with parameters.
edit .github/workflows/python-test.yml
add content:
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Prepare repo
uses: actions/checkout@master
- name: Test
uses: onichandame/python-test-action@master
If some customization is required, several parameters can be added.
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Prepare repo
uses: actions/checkout@master
- name: Test
uses: onichandame/python-test-action@master
with:
path: 'my-repo'
deps_list: 'requirement'
- path: the same path passed to
actions/checkout
- deps_list: the dependency list. default to requirements.txt