Skip to content

Merge pull request #4 from terrierteam/laff_model #25

Merge pull request #4 from terrierteam/laff_model

Merge pull request #4 from terrierteam/laff_model #25

Workflow file for this run

name: Test Python package
on:
push:
pull_request:
workflow_dispatch:
inputs:
note:
description: "note"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.8', '3.11']
name: [ubuntu-gcc-9]
java: [13]
architecture: ['x64']
include:
- name: ubuntu-gcc-9
os: ubuntu-latest
compiler: "gcc"
version: "9"
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
architecture: ${{ matrix.architecture }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip pytest
pip install pyterrier_pisa torch transformers --extra-index-url https://download.pytorch.org/whl/cpu
pip install --upgrade --upgrade-strategy eager -r requirements.txt
- name: Run tests
run: |
pytest tests/