Skip to content

feat: load new model weights, log inference, and extend coverage tests #62

feat: load new model weights, log inference, and extend coverage tests

feat: load new model weights, log inference, and extend coverage tests #62

Workflow file for this run

name: Build and Test
on:
push:
branches:
- 'main'
- 'features/**'
pull_request:
branches:
- main
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: ./mvnw -B clean compile
- name: Run unit tests
run: ./mvnw -B test
- name: Package application
run: ./mvnw -B package -DskipTests
- name: Verify build artifacts
run: |
echo "Checking build output..."
ls -lh target/*.jar
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: application-jar
path: target/*.jar
retention-days: 7