Skip to content

Maven and Python Tests #268

Maven and Python Tests

Maven and Python Tests #268

Workflow file for this run

name: Maven and Python Tests
'on':
pull_request:
types:
- opened
- edited
- synchronize
- reopened
schedule:
- cron: 0 0 * * *
jobs:
test:
strategy:
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: temurin
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: '${{ runner.os }}-maven-${{ hashFiles(''**/pom.xml'') }}'
restore-keys: |
${{ runner.os }}-maven-
- name: Generate JAR file
run: mvn clean package -DskipTests
- name: Run Maven tests
run: mvn test
- uses: actions/setup-python@v4
with:
python-version: '${{ matrix.python-version }}'
cache: pip
- name: Install Python test dependencies
run: |
pip install --upgrade pip
pip install -r src/test/python/requirements.txt
- name: Run Python tests
run: pytest