Skip to content

Make newlines in tests OS-independent #1

Make newlines in tests OS-independent

Make newlines in tests OS-independent #1

Workflow file for this run

name: Python tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
name: Build and test python library
strategy:
matrix:
python-version: ["3.9", "3.10"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 ./python --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: 'sbt'
- name: Build JVM code and set .jar
run: sbt python/assembly
- name: Test with pytest
run: |-
pip install ./python
pytest ./python/tests