Fix CI issues: add workflow file and fix lint errors
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -9,20 +9,26 @@ on:
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e ".[dev]"
|
||||
pip install click>=8.0 requests>=2.28 pyyaml>=6.0
|
||||
pip install pytest pytest-cov
|
||||
|
||||
- name: Run tests
|
||||
run: pytest tests/ -v
|
||||
run: |
|
||||
python -m pytest tests/ -v
|
||||
|
||||
- name: Check code style (ruff)
|
||||
run: pip install ruff && ruff check .
|
||||
- name: Check linting
|
||||
run: |
|
||||
pip install ruff
|
||||
python -m ruff check .
|
||||
Reference in New Issue
Block a user