[pre-commit.ci] auto fixes from pre-commit.com hooks #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Github workflow runner instructions using customized actions | |
name: Multi-Arch GitHub Actions | |
on: [ push ] | |
jobs: | |
runner_details: | |
runs-on: ubuntu-20.04 | |
name: Runner Details | |
steps: | |
########## CHECK OUT REPO AND PRINT REPO INFO ####### | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Intro to job runner | |
run: | | |
echo "job runner details " | |
echo "Event: ${{ github.event_name }}" | |
echo "os: ${{ runner.os }} server." | |
echo "Repository: ${{ github.repository }}:${{ github.ref_name }}." | |
ls ${{ github.workspace }} | |
run_simple_loop: | |
runs-on: ubuntu-20.04 | |
name: Run Simple Loop (No Custom Action) | |
steps: | |
########## CHECK OUT REPO AND DOWNLOAD PACKAGES AND RUN CODE ####### | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install python packages | |
run: | | |
pip install pyfiglet | |
pip install -r requirements.txt | |
pyfiglet Multi-Arch Build with GitHub Actions | |
- name: Run Code | |
run: python simple_loop.py | |
run_simple_loop_action: | |
runs-on: ubuntu-20.04 | |
name: Run Custom Action | |
steps: | |
########## CHECK OUT REPO AND DOWNLOAD PACKAGES AND RUN CODE WITH CUSTOM ACTION ####### | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install python packages | |
uses: ./.github/actions/install-run-code | |
with: | |
project_name: | |
Multi-Arch Build with GitHub Actions [With Custom Action] |