Update CalibrationExampleWithCITYdata.py #187
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
| # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | |
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| name: Ptidej Middleware CI with Maven | |
| on: | |
| push: | |
| branches: [ "master", "develop" ] | |
| paths-ignore: | |
| - 'docs/**' | |
| - '*.md' | |
| pull_request: | |
| branches: [ "master", "develop" ] | |
| paths-ignore: | |
| - 'docs/**' | |
| - '*.md' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Generate keypair for authentication (in correct location) | |
| working-directory: Middleware | |
| run: | | |
| mkdir -p src/main/resources/scripts/certs/ | |
| openssl genpkey -algorithm RSA -out src/main/resources/scripts/certs/private.pem -pkeyopt rsa_keygen_bits:2048 | |
| openssl rsa -pubout -in src/main/resources/scripts/certs/private.pem -out src/main/resources/scripts/certs/public.pem | |
| - name: Clean and test with Maven | |
| working-directory: Middleware | |
| run: | | |
| mvn clean test \ | |
| -DHUB_APPLICATION_UUID=${{ secrets.HUB_APPLICATION_UUID }} \ | |
| -DHUB_USERNAME=${{ secrets.HUB_USERNAME }} \ | |
| -DHUB_PASSWORD=${{ secrets.HUB_PASSWORD }} | |
| - name: Build with Maven | |
| run: mvn install | |
| working-directory: Middleware |