Skip to content

This repo helps newcomers set up and edit GitHub Actions. The latest build v2.1.0 is now available on GitHub Marketplace. Please report any issues. Thank you for your support!

License

jge162/Action-Workflows

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Action-workflows:

Python Action GitHub Libraries.io dependency status for GitHub repo GitHub release (latest SemVer)

Important

This is Repository is a template for copying simple-to-use GitHub actions, designed for the initial setup of any repository!

Note

GitHub Action test case below: If errors exist within the code they'll be listed in the actions console! Also you can run more than one file, by separating them using commas. A good trigger to use is also workflow_dispatch:, to manually run the action.

name: Run Python file

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build-and-analyze:
    runs-on: ubuntu-latest

    steps:
    - name: Python Action
      uses: jge162/[email protected]
      with:
        token: ${{ secrets.GITHUB_SECRET }}

    - run: |
        echo "Install required dependencies" 
        sudo apt-get update
        sudo apt-get install python3    
    
        # Lastly use a `for` loop to run multiple instances of Python scripts.
        # This way you can run one, or multiple python scripts.

    - run: |
        echo "Run, Build Application using scripts"
        python3 -c "
        scripts = ['./script.py', './script2.py'] 
        for script in scripts:
            with open(script, 'r') as file:
                exec(file.read())"

Important

Please report issues here, for discussion and resolution!

Action-workflows is licensed under the GNU General Public License v3.0, Code of Conduct.

Warning

Designed with 💙 by @jermyiah™

About

This repo helps newcomers set up and edit GitHub Actions. The latest build v2.1.0 is now available on GitHub Marketplace. Please report any issues. Thank you for your support!

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages