Skip to content

Update test action

Update test action #69

Workflow file for this run

name: Run tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
PYTHON_VERSION: 3.7.17 # test on the minimum version supported
jobs:
run-tests:
name: Run negate tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set-up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
architecture: 'x64'
- name: Install Python requirements
run: pip install -r tests/requirements.txt
- name: Run tests without Transformers
run: pytest tests