Skip to content

Commit

Permalink
Refactor workflow to consolidate steps and improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Kseen715 committed Aug 18, 2024
1 parent a9282b7 commit 5d78711
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/on-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,24 @@ jobs:
exit 0
fi
setup-python:
run-main:
runs-on: ubuntu-latest
needs: [fetch-commit-message, check-no-ci]
steps:
- uses: actions/checkout@v2
- name: "Set up Python"
uses: actions/setup-python@v2
with:
python-version: '3.x'

install-dependencies:
runs-on: ubuntu-latest
needs: setup-python
steps:
- uses: actions/checkout@v2
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
run-all:
runs-on: ubuntu-latest
needs: install-dependencies
steps:
- uses: actions/checkout@v2
- name: "Run all"
run: python ./src/runall.py

commit-results:
runs-on: ubuntu-latest
needs: run-all
needs: run-main
steps:
- uses: actions/checkout@v2
- name: "Commit results"
Expand Down

0 comments on commit 5d78711

Please sign in to comment.