fix: remove nested directory path from CI workflow
- Removed 'path: repohealth-cli' from checkout steps to fix nested directory structure - Removed all 'working-directory: ./repohealth-cli' settings from jobs - Commands now run in the correct directory context
This commit is contained in:
@@ -15,8 +15,6 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: repohealth-cli
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
@@ -28,11 +26,9 @@ jobs:
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install ruff
|
||||
working-directory: ./repohealth-cli
|
||||
|
||||
- name: Run linting
|
||||
run: python -m ruff check src/ tests/
|
||||
working-directory: ./repohealth-cli
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -40,8 +36,6 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: repohealth-cli
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
@@ -54,18 +48,15 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt
|
||||
python -m pip install pytest pytest-cov
|
||||
working-directory: ./repohealth-cli
|
||||
|
||||
- name: Run tests
|
||||
run: python -m pytest tests/ -xvs --tb=short
|
||||
working-directory: ./repohealth-cli
|
||||
|
||||
- name: Upload coverage
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: coverage-report
|
||||
path: .coverage
|
||||
working-directory: ./repohealth-cli
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -74,8 +65,6 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: repohealth-cli
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
@@ -88,8 +77,6 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt
|
||||
python -m pip install build
|
||||
working-directory: ./repohealth-cli
|
||||
|
||||
- name: Build package
|
||||
run: python -m build
|
||||
working-directory: ./repohealth-cli
|
||||
|
||||
Reference in New Issue
Block a user