diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e6c25f0..4d3c435 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,20 +2,20 @@ name: CI on: push: - branches: [main] + branches: [ main ] jobs: test: runs-on: ubuntu-latest + container: + image: python:3.11-slim steps: - - uses: actions/checkout@v4 - - name: Set up Python + - name: Checkout run: | - sudo apt-get update - sudo apt-get install -y python3 python3-pip python3-venv - python3 --version - pip3 --version - - name: Install package - run: pip3 install -e . pytest pytest-asyncio + apt-get update + apt-get install -y git + git clone --depth 1 https://github.com/7000pctAUTO/snippet-manager.git . + - name: Install + run: pip install -e . pytest pytest-asyncio - name: Run tests run: pytest tests/ -v