Skip to content

Commit

Permalink
Simple but useful action to run compare.py on each commit (#67)
Browse files Browse the repository at this point in the history
* Create compare.yml pipeline
* Create compare-requirements.txt
  • Loading branch information
LuKePicci authored Jul 3, 2024
1 parent 9dacb83 commit 6a17f15
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/compare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run compare.py on each commit

on:
push:
branches:
- '**' # This will trigger the workflow on any branch

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository content
uses: actions/checkout@v2 # This action checks-out your repository under $GITHUB_WORKSPACE

- name: Set up Python environment
uses: actions/setup-python@v2
with:
python-version: '3.x' # This will retrieve the latest Python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r Tools/compare-requirements.txt # If you have any dependencies
- name: Run Python script
run: python Tools/compare.py # Replace with your script's path
2 changes: 2 additions & 0 deletions Tools/compare-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prettytable==3.10.0
wcwidth==0.2.13

0 comments on commit 6a17f15

Please sign in to comment.