fix: update CI workflow to use explicit GitHub action URLs for Gitea compatibility
This commit is contained in:
@@ -10,39 +10,58 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout code
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: https://github.com/actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Cache pip packages
|
||||
uses: https://github.com/actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -e ".[dev]"
|
||||
|
||||
- name: Run linting
|
||||
run: ruff check src/
|
||||
run: |
|
||||
ruff check src/
|
||||
|
||||
- name: Run type checking
|
||||
run: |
|
||||
mypy src/
|
||||
|
||||
- name: Run tests
|
||||
run: pytest tests/ -v
|
||||
run: |
|
||||
pytest tests/ -v
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout code
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: https://github.com/actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -e .
|
||||
run: |
|
||||
pip install -e .
|
||||
|
||||
- name: Verify import
|
||||
run: python -c "import memory_manager; print(memory_manager.__version__)"
|
||||
run: |
|
||||
python -c "import memory_manager; print(memory_manager.__version__)"
|
||||
|
||||
- name: Verify CLI
|
||||
run: memory --version
|
||||
run: |
|
||||
memory --version
|
||||
Reference in New Issue
Block a user