From ba259f4ecc83d4babb9915b110754b6d80432f98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ingvar=20Dahlgren?= Date: Fri, 29 Mar 2024 18:56:29 +0100 Subject: [PATCH] woodpecker-ci requires 'steps:' --- .woodpecker.yaml | 80 ++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 46 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 509bc2f0..86f46412 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,16 +1,16 @@ -pipeline: - restore-cache: - image: drillster/drone-volume-cache - restore: true - mount: - - ./cache-ci/pyusrb - - ./cache-ci/conda_packages - - ./cache-ci/pip_cache - volumes: - - /tmp/cache:/cache - ttl: 90 # liftetime in days +steps: + # restore-cache: + # image: drillster/drone-volume-cache + # restore: true + # mount: + # - ./cache-ci/pyusrb + # - ./cache-ci/conda_packages + # - ./cache-ci/pip_cache + # volumes: + # - /tmp/cache:/cache + # ttl: 90 # liftetime in days - install: + - install: image: bjodah/bjodahimg20dot:21.8.a environment: - CC=gcc-11 @@ -33,7 +33,7 @@ pipeline: - mkdir -p deploy/public_html/branches/${DRONE_BRANCH} - cp dist/chempy-* deploy/public_html/branches/${DRONE_BRANCH}/ - test-suite: + - test-suite: image: bjodah/bjodahimg20dot:21.8.a group: testing environment: @@ -62,7 +62,7 @@ pipeline: - bash -c "source /tmp/test_sdist/bin/activate; pip install --cache-dir $CACHE_ROOT/pip_cache file://$(realpath $(eval ls chempy-*.tar.gz))#chempy[all] pytest; pytest --pyargs chempy" - bash -c "source /tmp/test_git_archive/bin/activate; pip install --cache-dir $CACHE_ROOT/pip_cache file://$(realpath chempy-head.zip)#chempy[all] pytest; pytest --pyargs chempy" - render-notebooks: + - render-notebooks: image: bjodah/bjodahimg20dot:21.8.a group: testing environment: @@ -79,20 +79,9 @@ pipeline: - ./scripts/render_notebooks.sh - ./.ci/grep-for-binary-data.sh - mv index.html index.ipynb.html -# - (cd examples/; for f in bokeh_*.py; do python3 -m bokeh html $f; done) - cp -r index.* examples/ "deploy/public_html/branches/${DRONE_BRANCH}" -# conda-recipe: -# image: bjodah/bjodahimg20dot:21.8.a -# group: testing -# commands: -# - export CONDA_PKGS_DIRS=$(pwd)/cache-ci/conda_packages -# - git fetch -tq -# - PATH=/opt/miniconda3/bin:$PATH conda config --add channels bjodah # sym, pyodesys, pyneqsys -# - PATH=/opt/miniconda3/bin:$PATH conda build --output-folder "deploy/public_html/branches/${DRONE_BRANCH}" conda-recipe -# - (cd $CONDA_PKGS_DIRS; find . -maxdepth 1 -type d -not -path . -not -path .. | xargs rm -r) - - compile-documentation: + - compile-documentation: image: bjodah/bjodahimg20dot:21.8.a environment: - CHEMPY_DEPRECATION_FILTER=ignore @@ -106,24 +95,23 @@ pipeline: - cp LICENSE doc/_build/html/ - cp -r doc/_build/html/ deploy/public_html/branches/${DRONE_BRANCH} - rebuild-cache: - image: drillster/drone-volume-cache - rebuild: true - mount: -# - ./cache-ci/sund-3.2.1 - - ./cache-ci/pyusrb - - ./cache-ci/conda_packages - - ./cache-ci/pip_cache - volumes: - - /tmp/cache:/cache + # rebuild-cache: + # image: drillster/drone-volume-cache + # rebuild: true + # mount: + # - ./cache-ci/pyusrb + # - ./cache-ci/conda_packages + # - ./cache-ci/pip_cache + # volumes: + # - /tmp/cache:/cache - deploy: - image: drillster/drone-rsync - when: - event: [push] - hosts: [ "hera.physchem.kth.se" ] - port: 22 - user: chempy - secrets: [ rsync_key ] # secret only set fro event "push" not "pull_request" - source: ./deploy/public_html - target: ~/ + # deploy: + # image: drillster/drone-rsync + # when: + # event: [push] + # hosts: [ "hera.physchem.kth.se" ] + # port: 22 + # user: chempy + # secrets: [ rsync_key ] # secret only set fro event "push" not "pull_request" + # source: ./deploy/public_html + # target: ~/