fix: simplify CI workflow for reliability
This commit is contained in:
@@ -19,22 +19,10 @@ jobs:
|
||||
cache: 'pip'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest
|
||||
run: python -m pip install --upgrade pip pytest
|
||||
|
||||
- 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
|
||||
|
||||
- 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
|
||||
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
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -47,14 +35,8 @@ jobs:
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install build dependencies
|
||||
run: pip install build
|
||||
|
||||
- name: Build package
|
||||
run: python -m build
|
||||
|
||||
- name: Install package
|
||||
run: pip install dist/*.whl
|
||||
run: pip install build && python -m build
|
||||
|
||||
- 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