From 96180c9dc9259f83ff05efb5fadc953da4fdfb64 Mon Sep 17 00:00:00 2001 From: Ken Payne Date: Wed, 20 Sep 2023 16:45:40 +0100 Subject: [PATCH] trim github workflows --- .github/workflows/pre-comit.yml | 18 ------------ .github/workflows/tests.yml | 49 --------------------------------- 2 files changed, 67 deletions(-) diff --git a/.github/workflows/pre-comit.yml b/.github/workflows/pre-comit.yml index 1b0a407..10c6e65 100644 --- a/.github/workflows/pre-comit.yml +++ b/.github/workflows/pre-comit.yml @@ -49,23 +49,5 @@ jobs: - name: Install dependencies run: poetry install - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: '18.16.0' - - - uses: actions/cache@v3 - with: - path: ~/.pnpm-store - key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm- - - - name: Install pnpm - run: npm install -g pnpm - - - name: Install UI dependencies - run: cd ui && pnpm install - - name: pre-commit run: poetry run pre-commit run --show-diff-on-failure --color=always --all-files diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 381fbe3..81b84c6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,55 +6,6 @@ name: Test python-singerlake on: [push] jobs: - linting: - - runs-on: ubuntu-latest - strategy: - matrix: - # Only lint using the primary version used for dev - python-version: ["3.11"] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install Poetry - run: | - python -m pip install --upgrade pip - pip install poetry==1.2.* - - name: Install dependencies - run: | - poetry install --with dev - - name: Run lint command from tox.ini - run: | - poetry run tox -e lint - - mypy: - - runs-on: ubuntu-latest - strategy: - matrix: - # Only lint using the primary version used for dev - python-version: ["3.11"] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install Poetry - run: | - python -m pip install --upgrade pip - pip install poetry==1.2.* - - name: Install dependencies - run: | - poetry install --with dev - - name: Run type command from tox.ini - run: | - poetry run tox -e type pytest: