From a38b0ba6259584d0e2339a1f88e722a5d6cc1cdd Mon Sep 17 00:00:00 2001 From: Adrien Perrin Date: Mon, 17 Jun 2024 13:06:14 +0200 Subject: [PATCH] TEST --- .github/workflows/ci.yml | 102 +++++++++++++++++++++------------------ 1 file changed, 54 insertions(+), 48 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02cb3f4..02d81e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,28 +6,27 @@ on: release: types: [prereleased, released] jobs: - tests_and_build_docker_images: - name: Run unit tests - runs-on: 'ubuntu-latest' - # strategy: - # matrix: - # python_version: - # - '3.7' - # - '3.8' - # - '3.9' - # - '3.10' - # - '3.11' - # env: - # BASE_IMAGE: "${{ vars.DOCKER_ORG }}/geospaas:2.5.2-python${{ matrix.python_version }}" - # IMAGE_NAME_WORKER: "${{ vars.DOCKER_ORG }}/geospaas_processing_worker" - # IMAGE_NAME_CLI: "${{ vars.DOCKER_ORG }}/geospaas_processing_cli" - # IDF_CONVERTER_VERSION: '0.1.394' - # GEOSPAAS_DB_HOST: 'db' - # GEOSPAAS_DB_USER: 'test' - # GEOSPAAS_DB_PASSWORD: ${{ secrets.GEOSPAAS_DB_PASSWORD }} - # latest: ${{ matrix.python_version == '3.11' && 'true' || '' }} - steps: - - run: umask + # tests_and_build_docker_images: + # name: Run unit tests + # runs-on: 'ubuntu-latest' + # strategy: + # matrix: + # python_version: + # - '3.7' + # - '3.8' + # - '3.9' + # - '3.10' + # - '3.11' + # env: + # BASE_IMAGE: "${{ vars.DOCKER_ORG }}/geospaas:2.5.2-python${{ matrix.python_version }}" + # IMAGE_NAME_WORKER: "${{ vars.DOCKER_ORG }}/geospaas_processing_worker" + # IMAGE_NAME_CLI: "${{ vars.DOCKER_ORG }}/geospaas_processing_cli" + # IDF_CONVERTER_VERSION: '0.1.394' + # GEOSPAAS_DB_HOST: 'db' + # GEOSPAAS_DB_USER: 'test' + # GEOSPAAS_DB_PASSWORD: ${{ secrets.GEOSPAAS_DB_PASSWORD }} + # latest: ${{ matrix.python_version == '3.11' && 'true' || '' }} + # steps: # - name: 'Checkout repository' # uses: actions/checkout@v4 @@ -144,30 +143,37 @@ jobs: # mv /tmp/.buildx-cache-new /tmp/.buildx-cache - # publish_python_package: - # name: Build Python package and publish it as a release artifact - # runs-on: 'ubuntu-latest' - # needs: 'tests_and_build_docker_images' - # if: ${{ github.event_name == 'release' }} - # steps: - # - name: 'Checkout repository' - # uses: actions/checkout@v4 - - # - name: 'Build Python package' - # run: > - # docker run --rm - # -v "$(pwd):/src" - # "${{ vars.DOCKER_ORG }}/geospaas:latest" - # bash -c "pip install build && python -m build" - - # - name: 'Deploy package to the Github release' - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # GITHUB_REPOSITORY: ${{ github.repository }} - # uses: svenstaro/upload-release-action@v2 - # with: - # repo_token: ${{ secrets.GITHUB_TOKEN }} - # file: 'dist/*' - # file_glob: true - # tag: ${{ github.ref }} + publish_python_package: + name: Build Python package and publish it as a release artifact + runs-on: 'ubuntu-latest' + # needs: 'tests_and_build_docker_images' + # if: ${{ github.event_name == 'release' }} + steps: + - name: 'Checkout repository' + uses: actions/checkout@v4 + + - name: 'Build Python package' + run: > + docker run --rm + -v "$(pwd):/src" + "${{ vars.DOCKER_ORG }}/geospaas:latest" + bash -c "pip install build && python -m build" + + - run: | + cd dist + tar -xzf geospaas_processing-*.tar.gz + ls -l geospaas_processing-*/geospaas_processing/converters/syntool/extra_readers/runner.py + unzip geospaas_processing-*.whl + ls -l geospaas_processing/converters/syntool/extra_readers/runner.py + + # - name: 'Deploy package to the Github release' + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # GITHUB_REPOSITORY: ${{ github.repository }} + # uses: svenstaro/upload-release-action@v2 + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: 'dist/*' + # file_glob: true + # tag: ${{ github.ref }} ... \ No newline at end of file