Skip to content

Commit

Permalink
Fix up workflow naming
Browse files Browse the repository at this point in the history
  • Loading branch information
znichollscr committed Aug 4, 2024
1 parent c892c49 commit 93369f2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Continuous integration (CI)

on:
pull_request:

jobs:
check-database-up-to-date:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Check database up to date
run: |
which pip
pip install python-packages/input4MIPs-CVs
python python-packages/input4MIPs-CVs/src/input4MIPs_CVs/cli/update-database.py --root-dir . || echo "Database entries not up to date with inputs. Please run `python python-packages/input4MIPs-CVs/src/input4MIPs_CVs/cli/update-database.py --root-dir .` or the equivalent for your machine." && exit 1
16 changes: 0 additions & 16 deletions .github/workflows/pr-comment-database-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,3 @@ jobs:
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: gh pr comment "$PR_NUMBER" --body-file "$BODY_FILE"

check-database-up-to-date:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Check database up to date
run: |
which pip
pip install python-packages/input4MIPs-CVs
python python-packages/input4MIPs-CVs/src/input4MIPs_CVs/cli/update-database.py --root-dir . || echo "Database entries not up to date with inputs. Please run `python python-packages/input4MIPs-CVs/src/input4MIPs_CVs/cli/update-database.py --root-dir .` or the equivalent for your machine." && exit 1

0 comments on commit 93369f2

Please sign in to comment.