Compare commits
20 Commits
4320570778
...
8e058aeefc
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e058aeefc | |||
| 8ab42fad20 | |||
| 40f934d542 | |||
| a537b1c468 | |||
| 19d55d6343 | |||
| bac3465172 | |||
| 8dd540e28a | |||
| 3aa31623bf | |||
| ff57d57fe9 | |||
| 88797e4c27 | |||
| ad458fe5d4 | |||
| 452285f62d | |||
| db48369879 | |||
| a4e228573f | |||
| 6d0b791afb | |||
| 2ef562785d | |||
| 745ec89048 | |||
| e6a8ca487b | |||
| 53bb25862c | |||
| 591cca959b |
@@ -3,46 +3,29 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Check system
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.11'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
run: |
|
||||||
pip install -e ".[dev]"
|
uname -a
|
||||||
|
cat /etc/os-release 2>/dev/null | head -5
|
||||||
- name: Run linting
|
- name: Install Python
|
||||||
|
run: |
|
||||||
|
if ! command -v python3 &> /dev/null; then
|
||||||
|
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||||
|
curl -sSL https://www.python.org/ftp/python/3.11.0/python-3.11.0-linux-x86_64.tar.gz -o python.tar.gz
|
||||||
|
tar -xzf python.tar.gz
|
||||||
|
export PATH="/app/python-3.11.0:$PATH"
|
||||||
|
fi
|
||||||
|
python3 --version
|
||||||
|
- name: Install deps
|
||||||
|
run: pip3 install -e ".[dev]"
|
||||||
|
- name: Lint
|
||||||
run: ruff check src/
|
run: ruff check src/
|
||||||
|
- name: Type check
|
||||||
- name: Run tests
|
run: mypy src/
|
||||||
|
- name: Test
|
||||||
run: pytest tests/ -v
|
run: pytest tests/ -v
|
||||||
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: test
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.11'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pip install -e .
|
|
||||||
|
|
||||||
- name: Verify import
|
|
||||||
run: python -c "import memory_manager; print(memory_manager.__version__)"
|
|
||||||
|
|
||||||
- name: Verify CLI
|
|
||||||
run: memory --version
|
|
||||||
|
|||||||
Reference in New Issue
Block a user