Skip to content

Commit

Permalink
Make run_tests on PR and push
Browse files Browse the repository at this point in the history
  • Loading branch information
bebatut committed Jun 24, 2024
1 parent 72e2d3c commit 211d15b
Showing 1 changed file with 3 additions and 45 deletions.
48 changes: 3 additions & 45 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
name: Run tests

on:
workflow_dispatch:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
# concurrency:
# group: "tools"
# cancel-in-progress: false

permissions:
contents: write
on: [push, pull_request]

jobs:
fetch-all-tools-stepwise:
test:
runs-on: ubuntu-20.04
environment: fetch-tools
name: Fetch all tool stepwise
strategy:
matrix:
python-version: [3.8]
Expand All @@ -39,34 +27,4 @@ jobs:
run: |
bash ./bin/extract_filter_tutorial_test.sh
env:
PLAUSIBLE_API_KEY: ${{ secrets.PLAUSIBLE_API_TOKEN }}
- name: Commit all tools
# add or commit any changes in results if there was a change, merge with main and push as bot
run: |
git config user.name github-actions
git config user.email [email protected]
git pull --no-rebase -s recursive -X ours
git add results
git status
git diff --quiet && git diff --staged --quiet || (git commit -m "fetch all tools bot - step fetch")
git push
# fetch-all-tools-merge:
# runs-on: ubuntu-20.04
# needs: fetch-all-tools-stepwise
# name: Fetch all tools merge
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# - name: Install requirement
# run: python -m pip install -r requirements.txt
# - name: Run script
# run: |
# cat results/repositories*.list_tools.tsv > results/all_tools.tsv
# bash ./bin/extract_all_tools_downstream.sh
# - name: Commit all tools
# run: |
# git config user.name github-actions
# git config user.email [email protected]
# git diff --quiet || (git add results && git commit -m "fetch all tools bot - step merge")
# git push
PLAUSIBLE_API_KEY: ${{ secrets.PLAUSIBLE_API_TOKEN }}

0 comments on commit 211d15b

Please sign in to comment.