Skip to content

Commit

Permalink
Added a python and java version matrix to ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfpryor committed Dec 1, 2021
1 parent 0c04e5d commit 49180f6
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,51 @@ jobs:
env:
LINQS_DEPLOY_TOKEN: ${{ secrets.LINQS_DEPLOY_PASSOWRD }}
run: ./.ci/deploy-docs.sh

version-matrix:

needs: [build-test, style-lint]

runs-on: ubuntu-20.04

strategy:
matrix:
java-version: [8, 11, 16, 17]
python-version: ['3.7', '3.8', '3.9']

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Needs to be deep enough to hit the last tagged version.

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: adopt

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Cache Maven
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-java${{ matrix.java-version }}-${{ hashFiles('**/pom.xml') }}

- name: Cache Python Dependencies
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('psl-python/setup.py') }}-${{ hashFiles('psl-python/dev-requirements.txt') }}-${{ hashFiles('psl-python/optional_requirements.txt') }}

- name: Python Dependencies
run: |
pip3 install -r psl-python/dev-requirements.txt
pip3 install -r psl-python/optional_requirements.txt
- name: Build with Maven
run: mvn integration-test -B -P all-modules

0 comments on commit 49180f6

Please sign in to comment.