diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5958c59..363c765 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,46 +10,48 @@ jobs: test-python: name: Test Python runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, 'chore(ci): Bump version to')" steps: - uses: actions/checkout@v4 - + - name: Install uv uses: astral-sh/setup-uv@v5 - + - name: Set up Python uses: actions/setup-python@v5 with: python-version-file: "pyproject.toml" - + - name: Create config directory for tests run: | mkdir -p ~/.config/leggen cp config.example.toml ~/.config/leggen/config.toml - + - name: Run Python tests run: uv run pytest test-frontend: name: Test Frontend runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, 'chore(ci): Bump version to')" defaults: run: working-directory: ./frontend steps: - uses: actions/checkout@v4 - + - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' cache-dependency-path: frontend/package-lock.json - + - name: Install dependencies run: npm install - + - name: Run lint run: npm run lint - + - name: Run build - run: npm run build \ No newline at end of file + run: npm run build