mirror of
https://github.com/mruwnik/memory.git
synced 2025-06-08 13:24:41 +02:00
27 lines
562 B
YAML
27 lines
562 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install .[all]
|
|
pip install ruff==0.11.10 pylint
|
|
- name: Run linters
|
|
run: |
|
|
ruff check .
|
|
pylint $(git ls-files '*.py')
|
|
- name: Run tests
|
|
run: pytest -vv
|