Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Jun 17, 2024
1 parent 545c2ea commit a38b0ba
Showing 1 changed file with 54 additions and 48 deletions.
102 changes: 54 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 }}
...

0 comments on commit a38b0ba

Please sign in to comment.