This workflow runs all the needed tests for a python app.
- (Optional Step) Setting up deploy key from private repo interaction: Deploy Key Setup
This action is available on tags v04
and above.
- Description: A json string of the versions desired (e.g.
"[\"3.7\", \"3.8\"]"
) type
:string
required
:true
- Description: Directory containing all the test files to be run
type
:string
required
:true
- Description: A flag to control whether we use the default requirements.txt or a setup.py
type
:boolean
required
:false
default
:true
- Description: A flag to allow users to toggle on ssh configuration
type
:boolean
required
:false
default
:false
- NOTE: This flag makes ssh available to other actions
- Description: The directory the setup.py is located in
type
:string
required
:false
default
:.
- Description: The location of the requirements.txt
type
:string
required
:false
default
:./requirements.txt
- Description: A list of github secret containing a private SSH key
- How to generate a new ssh key for github
- Reference the Deploy Key Setup guide if you are using SSH keys for github repo interaction
- Syntax
ssh_private_keys: |
${{ secrets.REPO_ONE_DEPLOY_KEY }}
${{ secrets.REPO_TWO_DEPLOY_KEY }}
name: '[Workflow Test] python_test'
on:
workflow_dispatch:
jobs:
test_setup:
name: 'Setup Test'
uses: Auddia/cicd/.github/workflows/python_test.yml
with:
python_versions: "[\"3.7\", \"3.8\"]"
test_dir: ./resources/sample_python_tests
test_setup: true
test_requirements:
name: 'Requirements Test'
uses: Auddia/cicd/.github/workflows/python_test.yml
with:
python_versions: "[\"3.7\", \"3.8\"]"
test_dir: ./resources/sample_python_tests
- [Tests](FILL IN)