fix #478
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: [push, pull_request] | |
| env: | |
| DEV_RESOURCES_VERSION: 1.7 | |
| MAVEN_PROFILES: '""' | |
| IT_ONLY: true | |
| MAVEN_OPTS: "-XX:CompressedClassSpaceSize=256m -XX:+UseSerialGC -Xmx2g -XX:MaxMetaspaceSize=512m" | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-24.04 | |
| name: Unit Tests on Latest ASF Versions | |
| env: | |
| IT_ONLY: false | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| architecture: x64 | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v4 | |
| with: | |
| maven-version: 3.6.3 | |
| - name: Cache maven resources | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-maven-resources | |
| with: | |
| key: ${{ runner.os }}-mvn-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mvn- | |
| path: | | |
| ~/.m2/repository | |
| - name: Cache other resources | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-resources | |
| with: | |
| key: ${{ runner.os }}-other-${{ secrets.CACHE_ID }} | |
| restore-keys: | | |
| ${{ runner.os }}-other-${{ secrets.CACHE_ID }} | |
| path: | | |
| ~/.downloads | |
| test/landsat8 | |
| test/sentinel2 | |
| test/target/temp/gdal | |
| - name: Run | |
| run: ./.utility/run-tests.sh | |
| - name: Publish Unit Test Results | |
| uses: scacap/action-surefire-report@v1 | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| with: | |
| check_name: Unit Test Results | |
| report_paths: "**/target/surefire-reports/*.xml" | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| python-tests: | |
| runs-on: ubuntu-24.04 | |
| name: Python Tests on Latest ASF Versions | |
| env: | |
| IT_ONLY: false | |
| PYTHON_BUILD: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| architecture: x64 | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v4 | |
| with: | |
| maven-version: 3.6.3 | |
| - name: Cache maven resources | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-maven-resources | |
| with: | |
| key: ${{ runner.os }}-mvn-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mvn- | |
| path: | | |
| ~/.m2/repository | |
| - name: Cache other resources | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-resources | |
| with: | |
| key: ${{ runner.os }}-other-${{ secrets.CACHE_ID }} | |
| restore-keys: | | |
| ${{ runner.os }}-other-${{ secrets.CACHE_ID }} | |
| path: | | |
| ~/.downloads | |
| test/landsat8 | |
| test/sentinel2 | |
| test/target/temp/gdal | |
| - name: Run | |
| run: ./.utility/run-tests.sh | |
| - name: Python Test Results | |
| uses: scacap/action-surefire-report@v1 | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| with: | |
| check_name: Python Test Results | |
| report_paths: python/src/main/python/test-report.xml | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| integration-tests: | |
| runs-on: ubuntu-24.04 | |
| name: ${{ matrix.profile }} Integration Tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| profile: [redis-it, rocksdb-it, accumulo-it-client, accumulo-it-server, hbase-it-client, hbase-it-server, dynamodb-it, kudu-it, filesystem-it, 'filesystem-it,secondary-index-it', 'rocksdb-it,secondary-index-it', 'accumulo-it-server,compatibility','hbase-it-server,secondary-index-it'] | |
| include: | |
| - profile: cassandra-it | |
| retry_tests: true | |
| ## for now kerberos test environment isn't quite working, skip the kerberos tests until the issue is resolved | |
| # include a new variable of TEST_KERBEROS = true | |
| # - profile: accumulo-it-kerberos | |
| # test_kerberos: true | |
| # - profile: 'accumulo-it-kerberos,compatibility' | |
| # test_kerberos: true | |
| env: | |
| IT_ONLY: true | |
| MAVEN_PROFILES: ${{ matrix.profile }} | |
| TEST_KERBEROS: ${{ matrix.test_kerberos }} | |
| RETRY_TESTS: ${{ matrix.retry_tests }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| architecture: x64 | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v4 | |
| with: | |
| maven-version: 3.6.3 | |
| - name: Cache maven resources | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-maven-resources | |
| with: | |
| key: ${{ runner.os }}-mvn-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mvn- | |
| path: | | |
| ~/.m2/repository | |
| - name: Cache other resources | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-resources | |
| with: | |
| key: ${{ runner.os }}-other-${{ secrets.CACHE_ID }} | |
| restore-keys: | | |
| ${{ runner.os }}-other-${{ secrets.CACHE_ID }} | |
| path: | | |
| ~/.downloads | |
| test/landsat8 | |
| test/sentinel2 | |
| test/target/temp/gdal | |
| - name: Run | |
| run: ./.utility/retry ./.utility/run-tests.sh | |
| - name: Publish Integration Test ${{ matrix.profile }} Results | |
| uses: scacap/action-surefire-report@v1 | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| with: | |
| check_name: ${{ matrix.profile }} Results | |
| report_paths: test/target/failsafe-reports/TEST-org.locationtech.geowave.test.GeoWaveITSuite.xml | |
| github_token: ${{ secrets.GITHUB_TOKEN }} |