[pre-commit.ci] pre-commit autoupdate #5993
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: Test ASReview core | |
on: [push, pull_request] | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install ruff | |
run: | | |
pip install .[dev] | |
- name: Lint Python | |
run: | | |
ruff check --exclude=asreview/webapp | |
test-asreview-core: | |
name: test-asreview-core | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ["3.10", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
fetch-tags: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install packages | |
run: | | |
pip install pytest | |
pip install --no-cache-dir .[test] | |
pip install --no-cache-dir . | |
- name: Run test suite with pytest | |
run: | | |
pytest tests/ |