Skip to content

Commit

Permalink
ci: split pre-commit into own job; set HORDELIB_CI_ONGOING
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Feb 23, 2024
1 parent efaa729 commit 990f419
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/maintests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ on:
- '.github/workflows/prtests.yml'
- '.github/workflows/release.yml'
jobs:
build:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/[email protected]

build:
runs-on: self-hosted
env:
HORDELIB_TESTING: "no-cuda"
HORDELIB_CI_ONGOING: "1"
TESTS_ONGOING: "1"
CIVIT_API_TOKEN: ${{ secrets.CIVIT_API_TOKEN }}
strategy:
Expand All @@ -33,8 +39,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install --upgrade -r requirements.dev.txt
- name: Run lint/format/mypy check
run: tox -e pre-commit
- name: Check build_helper.py hordelib imports have no breaking dependency changes
run: tox -e test-build-helper
- name: Build unit test environment, confirm CUDA is available on host
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/prtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ on:
- '.github/workflows/prtests.yml'
- '.github/workflows/release.yml'
jobs:
build:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/[email protected]

build:
runs-on: self-hosted
env:
HORDELIB_TESTING: "no-cuda"
HORDELIB_CI_ONGOING: "1"
TESTS_ONGOING: "1"
CIVIT_API_TOKEN: ${{ secrets.CIVIT_API_TOKEN }}
strategy:
Expand All @@ -38,8 +44,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install --upgrade -r requirements.dev.txt
- name: Run lint/format/mypy check
run: tox -e pre-commit
- name: Check build_helper.py hordelib imports have no breaking dependency changes
run: tox -e test-build-helper
- name: Build unit test environment, confirm CUDA is available on host
Expand Down

0 comments on commit 990f419

Please sign in to comment.