Skip to content

Commit

Permalink
Remove python build from CI
Browse files Browse the repository at this point in the history
It needs more work at another time
  • Loading branch information
echeipesh committed Jan 19, 2023
1 parent df552b8 commit c5cf70c
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,26 @@ on:
pull_request:
branches: ['**']
push:
branches: ['master', 'develop', 'release/*']
branches: ['master', 'develop', 'release/*', 'spark-3.2']
tags: [v*]
release:
types: [published]

jobs:
build:
runs-on: ubuntu-20.04
container:
image: s22s/debian-openjdk-conda-gdal:6790f8d
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: olafurpg/setup-scala@v13
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: adopt@1.11

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install Conda dependencies
run: |
# $CONDA_DIR is an environment variable pointing to the root of the miniconda directory
$CONDA_DIR/bin/conda install -c conda-forge --yes --file pyrasterframes/src/main/python/requirements-condaforge.txt
distribution: temurin
java-version: 8
cache: sbt

# Do just the compilation stage to minimize sbt memory footprint
- name: Compile
Expand All @@ -47,11 +38,15 @@ jobs:
- name: Experimental tests
run: sbt -batch experimental/test

- name: Create PyRasterFrames package
run: sbt -v -batch pyrasterframes/package

- name: Python tests
run: sbt -batch pyrasterframes/test
## TODO: Update python build to be PEP 517 compatible
# - name: Install Conda dependencies
# run: |
# # $CONDA_DIR is an environment variable pointing to the root of the miniconda directory
# $CONDA_DIR/bin/conda install -c conda-forge --yes --file pyrasterframes/src/main/python/requirements-condaforge.txt
# - name: Create PyRasterFrames package
# run: sbt -v -batch pyrasterframes/package
# - name: Python tests
# run: sbt -batch pyrasterframes/test

- name: Collect artifacts
if: ${{ failure() }}
Expand Down

0 comments on commit c5cf70c

Please sign in to comment.