Simplify CI workflow
This commit is contained in:
@@ -24,21 +24,15 @@ jobs:
|
|||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|
||||||
- name: Check Python version
|
|
||||||
run: python --version
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -e ".[dev]" 2>&1 || echo "Install failed"
|
pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Show pip packages
|
|
||||||
run: pip list
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest -xvs --tb=short 2>&1 || echo "Tests failed"
|
run: pytest -xvs --tb=short
|
||||||
|
|
||||||
- name: Run linting
|
- name: Run linting
|
||||||
run: |
|
run: |
|
||||||
pip install ruff
|
pip install ruff
|
||||||
ruff check --fix . 2>&1 || echo "Linting failed"
|
ruff check --fix .
|
||||||
|
|||||||
Reference in New Issue
Block a user