fix: simplify CI workflow for reliability
This commit is contained in:
@@ -19,22 +19,10 @@ jobs:
|
|||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: python -m pip install --upgrade pip pytest
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install pytest
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: python -m pytest tests/test_cli_commands.py tests/test_encryption.py tests/test_profile.py tests/test_template.py tests/test_validator.py -v --tb=short
|
run: python -m pytest tests/test_cli_commands.py tests/test_encryption.py tests/test_profile.py tests/test_template.py tests/test_validator.py -v
|
||||||
|
|
||||||
- name: Run type checks
|
|
||||||
run: |
|
|
||||||
pip install mypy
|
|
||||||
mypy env_pro/ --ignore-missing-imports || true
|
|
||||||
|
|
||||||
- name: Check code formatting
|
|
||||||
run: |
|
|
||||||
pip install black
|
|
||||||
black --check env_pro/ || true
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -47,14 +35,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: pip install build
|
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: python -m build
|
run: pip install build && python -m build
|
||||||
|
|
||||||
- name: Install package
|
|
||||||
run: pip install dist/*.whl
|
|
||||||
|
|
||||||
- name: Verify package
|
- name: Verify package
|
||||||
run: python -m env_pro.cli --help
|
run: pip install dist/*.whl && python -m env_pro.cli --help
|
||||||
|
|||||||
Reference in New Issue
Block a user