From 27ce5bf75c8cbeef1b6b72a57da0bbdff60e34fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Gonz=C3=A1lez=20Duque?= Date: Tue, 3 Jun 2025 18:18:40 +0200 Subject: [PATCH 1/3] Reduces CI to run when relevant changes occur --- .github/workflows/python-tox-testing-base.yml | 4 ++++ .../workflows/python-tox-testing-dockstring-env.yml | 8 ++++++++ .../workflows/python-tox-testing-ehrlich-holo-env.yml | 6 ++++++ .github/workflows/python-tox-testing-lambo-env.yml | 4 ++++ .github/workflows/python-tox-testing-protein-env.yml | 10 ++++++++++ .github/workflows/python-tox-testing-rasp-env.yml | 10 ++++++++++ .github/workflows/python-tox-testing-rmf-env.yml | 6 ++++++ .github/workflows/python-tox-testing-rosetta-env.yml | 6 ++++++ .github/workflows/python-tox-testing-tdc-env.yml | 6 ++++++ 9 files changed, 60 insertions(+) diff --git a/.github/workflows/python-tox-testing-base.yml b/.github/workflows/python-tox-testing-base.yml index 095d256c..bfa2c9b4 100644 --- a/.github/workflows/python-tox-testing-base.yml +++ b/.github/workflows/python-tox-testing-base.yml @@ -5,11 +5,15 @@ on: branches: - dev - master + paths: + - 'src/poli/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master + paths: + - 'src/poli/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-dockstring-env.yml b/.github/workflows/python-tox-testing-dockstring-env.yml index 5587cee9..62145d94 100644 --- a/.github/workflows/python-tox-testing-dockstring-env.yml +++ b/.github/workflows/python-tox-testing-dockstring-env.yml @@ -5,11 +5,19 @@ on: branches: - dev - master + paths: + - 'src/poli/core/chemistry/**' + - 'src/poli/core/util/chemistry/**' + - 'src/poli/objective_repository/dockstring/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master + paths: + - 'src/poli/core/chemistry/**' + - 'src/poli/core/util/chemistry/**' + - 'src/poli/objective_repository/dockstring/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-ehrlich-holo-env.yml b/.github/workflows/python-tox-testing-ehrlich-holo-env.yml index f54e180b..bad6b9d0 100644 --- a/.github/workflows/python-tox-testing-ehrlich-holo-env.yml +++ b/.github/workflows/python-tox-testing-ehrlich-holo-env.yml @@ -5,11 +5,17 @@ on: branches: - dev - master + paths: + - 'src/poli/core/util/proteins/**' + - 'src/poli/objective_repository/ehrlich_holo/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master + paths: + - 'src/poli/core/util/proteins/**' + - 'src/poli/objective_repository/ehrlich_holo/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-lambo-env.yml b/.github/workflows/python-tox-testing-lambo-env.yml index c521c28e..daa2f32d 100644 --- a/.github/workflows/python-tox-testing-lambo-env.yml +++ b/.github/workflows/python-tox-testing-lambo-env.yml @@ -5,11 +5,15 @@ on: branches: - dev - master + paths: + - 'src/poli/objective_repository/foldx_rfp_lambo/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master + paths: + - 'src/poli/objective_repository/foldx_rfp_lambo/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-protein-env.yml b/.github/workflows/python-tox-testing-protein-env.yml index 22639fda..4c5665c0 100644 --- a/.github/workflows/python-tox-testing-protein-env.yml +++ b/.github/workflows/python-tox-testing-protein-env.yml @@ -5,11 +5,21 @@ on: branches: - dev - master + paths: + - 'src/poli/objective_repository/foldx_*/**' + - 'src/poli/objective_repository/rfp_foldx_*/**' + - 'src/poli/core/proteins/**' + - 'src/poli/core/util/proteins/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master + paths: + - 'src/poli/objective_repository/foldx_*/**' + - 'src/poli/objective_repository/rfp_foldx_*/**' + - 'src/poli/core/proteins/**' + - 'src/poli/core/util/proteins/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-rasp-env.yml b/.github/workflows/python-tox-testing-rasp-env.yml index 2be6fe18..307fdbc5 100644 --- a/.github/workflows/python-tox-testing-rasp-env.yml +++ b/.github/workflows/python-tox-testing-rasp-env.yml @@ -5,11 +5,21 @@ on: branches: - dev - master + paths: + - 'src/poli/objective_repository/rasp/**' + - 'src/poli/objective_repository/rfp_rasp/**' + - 'src/poli/core/proteins/**' + - 'src/poli/core/util/proteins/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master + paths: + - 'src/poli/objective_repository/rasp/**' + - 'src/poli/objective_repository/rfp_rasp/**' + - 'src/poli/core/proteins/**' + - 'src/poli/core/util/proteins/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-rmf-env.yml b/.github/workflows/python-tox-testing-rmf-env.yml index 6d6380b6..6aaf90c4 100644 --- a/.github/workflows/python-tox-testing-rmf-env.yml +++ b/.github/workflows/python-tox-testing-rmf-env.yml @@ -5,11 +5,17 @@ on: branches: - dev - master + paths: + - 'src/poli/objective_repository/rmf_landscape/**' + - 'src/poli/core/util/proteins/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master + paths: + - 'src/poli/objective_repository/rmf_landscape/**' + - 'src/poli/core/util/proteins/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-rosetta-env.yml b/.github/workflows/python-tox-testing-rosetta-env.yml index a764b09d..5df6e3cb 100644 --- a/.github/workflows/python-tox-testing-rosetta-env.yml +++ b/.github/workflows/python-tox-testing-rosetta-env.yml @@ -5,11 +5,17 @@ on: branches: - dev - master + paths: + - 'src/poli/objective_repository/rosetta_energy/**' + - 'src/poli/core/util/proteins/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master + paths: + - 'src/poli/objective_repository/rmf_landscape/**' + - 'src/poli/core/util/proteins/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-tdc-env.yml b/.github/workflows/python-tox-testing-tdc-env.yml index 3b4aba98..03dc7f64 100644 --- a/.github/workflows/python-tox-testing-tdc-env.yml +++ b/.github/workflows/python-tox-testing-tdc-env.yml @@ -5,11 +5,17 @@ on: branches: - dev - master + paths: + - 'src/poli/core/chemistry/**' + - 'src/poli/core/util/chemistry/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master + paths: + - 'src/poli/core/chemistry/**' + - 'src/poli/core/util/chemistry/**' schedule: - cron: '0 0 * * 0' From 792ef7af6cbccf9a0b4fac5c9ff54c01cda11ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Gonz=C3=A1lez=20Duque?= Date: Tue, 3 Jun 2025 18:25:04 +0200 Subject: [PATCH 2/3] Adds tests to the files tracked --- .github/workflows/python-tox-testing-dockstring-env.yml | 2 ++ .github/workflows/python-tox-testing-ehrlich-holo-env.yml | 2 ++ .github/workflows/python-tox-testing-lambo-env.yml | 2 ++ .github/workflows/python-tox-testing-protein-env.yml | 2 ++ .github/workflows/python-tox-testing-rasp-env.yml | 2 ++ .github/workflows/python-tox-testing-rmf-env.yml | 2 ++ .github/workflows/python-tox-testing-rosetta-env.yml | 2 ++ .github/workflows/python-tox-testing-tdc-env.yml | 2 ++ 8 files changed, 16 insertions(+) diff --git a/.github/workflows/python-tox-testing-dockstring-env.yml b/.github/workflows/python-tox-testing-dockstring-env.yml index 62145d94..062258b6 100644 --- a/.github/workflows/python-tox-testing-dockstring-env.yml +++ b/.github/workflows/python-tox-testing-dockstring-env.yml @@ -9,6 +9,7 @@ on: - 'src/poli/core/chemistry/**' - 'src/poli/core/util/chemistry/**' - 'src/poli/objective_repository/dockstring/**' + - 'src/poli/tests/registry/chemistry/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: @@ -18,6 +19,7 @@ on: - 'src/poli/core/chemistry/**' - 'src/poli/core/util/chemistry/**' - 'src/poli/objective_repository/dockstring/**' + - 'src/poli/tests/registry/chemistry/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-ehrlich-holo-env.yml b/.github/workflows/python-tox-testing-ehrlich-holo-env.yml index bad6b9d0..71977179 100644 --- a/.github/workflows/python-tox-testing-ehrlich-holo-env.yml +++ b/.github/workflows/python-tox-testing-ehrlich-holo-env.yml @@ -8,6 +8,7 @@ on: paths: - 'src/poli/core/util/proteins/**' - 'src/poli/objective_repository/ehrlich_holo/**' + - 'src/poli/tests/registry/toy_discrete_problems/test_ehrlich_holo.py' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: @@ -16,6 +17,7 @@ on: paths: - 'src/poli/core/util/proteins/**' - 'src/poli/objective_repository/ehrlich_holo/**' + - 'src/poli/tests/registry/toy_discrete_problems/test_ehrlich_holo.py' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-lambo-env.yml b/.github/workflows/python-tox-testing-lambo-env.yml index daa2f32d..60d771b7 100644 --- a/.github/workflows/python-tox-testing-lambo-env.yml +++ b/.github/workflows/python-tox-testing-lambo-env.yml @@ -7,6 +7,7 @@ on: - master paths: - 'src/poli/objective_repository/foldx_rfp_lambo/**' + - 'src/poli/tests/registry/proteins/test_foldx_rfp_lambo.py' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: @@ -14,6 +15,7 @@ on: - master paths: - 'src/poli/objective_repository/foldx_rfp_lambo/**' + - 'src/poli/tests/registry/proteins/test_foldx_rfp_lambo.py' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-protein-env.yml b/.github/workflows/python-tox-testing-protein-env.yml index 4c5665c0..606b3dbe 100644 --- a/.github/workflows/python-tox-testing-protein-env.yml +++ b/.github/workflows/python-tox-testing-protein-env.yml @@ -10,6 +10,7 @@ on: - 'src/poli/objective_repository/rfp_foldx_*/**' - 'src/poli/core/proteins/**' - 'src/poli/core/util/proteins/**' + - 'src/poli/tests/registry/proteins/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: @@ -20,6 +21,7 @@ on: - 'src/poli/objective_repository/rfp_foldx_*/**' - 'src/poli/core/proteins/**' - 'src/poli/core/util/proteins/**' + - 'src/poli/tests/registry/proteins/**' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-rasp-env.yml b/.github/workflows/python-tox-testing-rasp-env.yml index 307fdbc5..0d8aba01 100644 --- a/.github/workflows/python-tox-testing-rasp-env.yml +++ b/.github/workflows/python-tox-testing-rasp-env.yml @@ -10,6 +10,7 @@ on: - 'src/poli/objective_repository/rfp_rasp/**' - 'src/poli/core/proteins/**' - 'src/poli/core/util/proteins/**' + - 'src/poli/tests/registry/proteins/test_rasp.py' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: @@ -20,6 +21,7 @@ on: - 'src/poli/objective_repository/rfp_rasp/**' - 'src/poli/core/proteins/**' - 'src/poli/core/util/proteins/**' + - 'src/poli/tests/registry/proteins/test_rasp.py' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-rmf-env.yml b/.github/workflows/python-tox-testing-rmf-env.yml index 6aaf90c4..e0a94b70 100644 --- a/.github/workflows/python-tox-testing-rmf-env.yml +++ b/.github/workflows/python-tox-testing-rmf-env.yml @@ -8,6 +8,7 @@ on: paths: - 'src/poli/objective_repository/rmf_landscape/**' - 'src/poli/core/util/proteins/**' + - 'src/poli/tests/registry/proteins/test_rmf.py' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: @@ -16,6 +17,7 @@ on: paths: - 'src/poli/objective_repository/rmf_landscape/**' - 'src/poli/core/util/proteins/**' + - 'src/poli/tests/registry/proteins/test_rmf.py' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-rosetta-env.yml b/.github/workflows/python-tox-testing-rosetta-env.yml index 5df6e3cb..57616b69 100644 --- a/.github/workflows/python-tox-testing-rosetta-env.yml +++ b/.github/workflows/python-tox-testing-rosetta-env.yml @@ -8,6 +8,7 @@ on: paths: - 'src/poli/objective_repository/rosetta_energy/**' - 'src/poli/core/util/proteins/**' + - 'src/poli/tests/registry/proteins/test_rosetta.py' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: @@ -16,6 +17,7 @@ on: paths: - 'src/poli/objective_repository/rmf_landscape/**' - 'src/poli/core/util/proteins/**' + - 'src/poli/tests/registry/proteins/test_rosetta.py' schedule: - cron: '0 0 * * 0' diff --git a/.github/workflows/python-tox-testing-tdc-env.yml b/.github/workflows/python-tox-testing-tdc-env.yml index 03dc7f64..cbcc98db 100644 --- a/.github/workflows/python-tox-testing-tdc-env.yml +++ b/.github/workflows/python-tox-testing-tdc-env.yml @@ -8,6 +8,7 @@ on: paths: - 'src/poli/core/chemistry/**' - 'src/poli/core/util/chemistry/**' + - 'src/poli/tests/registry/chemistry/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: @@ -16,6 +17,7 @@ on: paths: - 'src/poli/core/chemistry/**' - 'src/poli/core/util/chemistry/**' + - 'src/poli/tests/registry/chemistry/**' schedule: - cron: '0 0 * * 0' From d2e9fa8fd489e7ee213404848b720f4b3f69cd9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Gonz=C3=A1lez=20Duque?= Date: Tue, 3 Jun 2025 18:25:39 +0200 Subject: [PATCH 3/3] Makes the base test run always --- .github/workflows/python-tox-testing-base.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/python-tox-testing-base.yml b/.github/workflows/python-tox-testing-base.yml index bfa2c9b4..095d256c 100644 --- a/.github/workflows/python-tox-testing-base.yml +++ b/.github/workflows/python-tox-testing-base.yml @@ -5,15 +5,11 @@ on: branches: - dev - master - paths: - - 'src/poli/**' pull_request: types: [opened, synchronize, reopened, ready_for_review, closed] branches: - dev - master - paths: - - 'src/poli/**' schedule: - cron: '0 0 * * 0'