summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-02-01 15:23:19 +0100
committerAlexandre Flament <alex@al-f.net>2021-02-01 16:58:04 +0100
commit8c45f1149dd464317c8a11829b084f2d30037162 (patch)
tree11423779ad6f1ce49fb5b4994d30371b62e10443 /.github
parent38b39ef0ae85b889b8a8401235c577c95845ed7a (diff)
downloadsearxng-8c45f1149dd464317c8a11829b084f2d30037162.tar.gz
searxng-8c45f1149dd464317c8a11829b084f2d30037162.zip
[hardening] github workflows - corrupted cache
aka: ensure that 'make test' works as expected The cache contains a copy './local' which is - under some circumstance - corrupted. It is not possible to clear the cache [1] (see the top of the page). Ensure that 'make test' works as expected [2] even if - the python interpreter is missing - the virtualenv exists but pyyaml is missing To hardening when the workflow cache fails, this patch adds the new target 'travis.test' into the workflow. This target probes to import a python module 'yaml'. If this fails the virtualenv will be completely new build. [1] https://github.com/actions/cache/issues/2#issuecomment-673493515 [2] https://github.com/searx/searx/pull/2517#discussion_r567240235 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/integration.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 4f3b8e9c8..39f3d3418 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -34,7 +34,7 @@ jobs:
make V=1 install
make V=1 gecko.driver
- name: Run tests
- run: make V=1 test
+ run: make V=1 ci.test
- name: Test coverage
run: make V=1 test.coverage
- name: Store coverage result