Merge pull request #186 from UCL/ds/ltpinfection #599
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9'] | |
name: Test on Python ${{ matrix.python-version }} | |
steps: | |
# Checkout the code we are testing | |
- uses: actions/checkout@v2 | |
# Setup Python | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Install dependencies and package | |
- run: pip install .[dev] | |
# Run tests | |
- run: pytest |