Skip to content

Commit 14e7270

Browse files
committed
Remove self hosted runners
1 parent ce2b79a commit 14e7270

File tree

3 files changed

+38
-73
lines changed

3 files changed

+38
-73
lines changed

.github/workflows/code_checks.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Code checks
2+
3+
on:
4+
schedule:
5+
- cron: '0 04 * * *'
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
types:
11+
- opened
12+
- reopened
13+
- synchronize
14+
workflow_dispatch:
15+
16+
jobs:
17+
code_checks:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Python 3.12
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: 3.12
25+
- name: Install cubitpy
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install .[dev]
29+
- name: Code checks
30+
run: |
31+
pre-commit install --install-hooks
32+
if [ "${GITHUB_REF}" = "refs/heads/main" ]; then
33+
SKIP=no-commit-to-branch pre-commit run --all-files
34+
else
35+
pre-commit run --all-files
36+
fi

.github/workflows/testing_with_secrets.yml renamed to .github/workflows/cubitpy_test_suite_with_secrets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Protected test suite (can access cubit secrets)
1+
name: Protected CubitPy test suite (can access cubit secrets)
22

33
on:
44
schedule:
@@ -18,7 +18,7 @@ env:
1818

1919
jobs:
2020
testing_coreform:
21-
name: Test suite with Coreform
21+
name: CubitPy tests with Coreform
2222
runs-on: ubuntu-latest
2323
environment:
2424
# Use the trusted environment only for PRs authored by an COLLABORATOR (no approval needed); all others use the untrusted environment (someone has to approve the workflow run).

.github/workflows/testing.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)