mirror of
https://github.com/blackboxprogramming/native-ai-quantum-energy.git
synced 2026-03-18 00:34:05 -05:00
Update CI to install from requirements.txt and fail on lint errors
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -23,10 +23,10 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install pytest
|
run: pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests/ -v
|
run: pytest tests/ -v --tb=short
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -38,9 +38,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
- name: Install ruff
|
- name: Install dependencies
|
||||||
run: pip install ruff
|
run: pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Run ruff
|
- name: Run ruff
|
||||||
continue-on-error: true
|
|
||||||
run: ruff check .
|
run: ruff check .
|
||||||
|
|||||||
Reference in New Issue
Block a user