Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Code checks

on:
schedule:
- cron: '0 04 * * *'
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
code_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install cubitpy
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Code checks
run: |
pre-commit install --install-hooks
if [ "${GITHUB_REF}" = "refs/heads/main" ]; then
SKIP=no-commit-to-branch pre-commit run --all-files
else
pre-commit run --all-files
fi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Protected test suite (can access cubit secrets)
name: Protected CubitPy test suite (can access cubit secrets)

on:
schedule:
Expand All @@ -18,7 +18,7 @@ env:

jobs:
testing_coreform:
name: Test suite with Coreform
name: CubitPy tests with Coreform
runs-on: ubuntu-latest
environment:
# 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).
Expand Down
71 changes: 0 additions & 71 deletions .github/workflows/testing.yml

This file was deleted.