diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml deleted file mode 100644 index f0171e4..0000000 --- a/.github/actions/prepare/action.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: prepare - -inputs: - python-version: - description: 'Python Version' - required: true - default: '3.9' - poetry-version: - description: 'Poetry Version' - default: '1.7.0' - node-version: - description: 'Node Version' - default: '20.x' - npm: - description: 'use npm' - default: false - type: boolean - -runs: - using: 'composite' - steps: - - name: Set up Python ${{ inputs.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ inputs.python-version }} - # cache poetry install via pip - cache: 'pip' - - - name: Set up Poetry ${{ inputs.poetry-version }} - uses: abatilo/actions-poetry@v2 - with: - poetry-version: ${{ inputs.poetry-version }} - - - name: Setup a local virtual environment (if no poetry.toml file) - shell: bash - run: | - poetry config virtualenvs.create true --local - poetry config virtualenvs.in-project true --local - - - uses: actions/cache@v4 - name: Define a cache for the virtual environment based on the dependencies lock file - with: - path: ./.venv - key: venv-${{ hashFiles('poetry.lock') }} - - - name: Install the project dependencies - shell: bash - run: poetry install --no-root - - - name: Use Node.js ${{ inputs.node-version }} - if: ${{ (inputs.npm == 'true') }} - uses: actions/setup-node@v4 - with: - node-version: ${{ inputs.node-version }} - - - uses: actions/cache@v4 - if: ${{ (inputs.npm == 'true') }} - name: Define a cache for the npm based on the dependencies lock file - with: - path: ./node_modules - key: npm-${{ hashFiles('package-lock.json') }} - - - name: Install npm packages - if: ${{ (inputs.npm == 'true') }} - shell: bash - run: npm install diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 40a26b7..68e44b3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,45 +6,47 @@ on: pull_request: jobs: - black: - uses: ./.github/workflows/make.yml - strategy: - matrix: - python-version: ['3.9', '3.10'] - with: - make: checkblack - python-version: ${{ matrix.python-version }} + lint: + uses: lnbits/lnbits/.github/workflows/lint.yml + # black: + # uses: ./.github/workflows/make.yml + # strategy: + # matrix: + # python-version: ['3.9', '3.10'] + # with: + # make: checkblack + # python-version: ${{ matrix.python-version }} - ruff: - uses: ./.github/workflows/make.yml - strategy: - matrix: - python-version: ['3.9', '3.10'] - with: - make: checkruff - python-version: ${{ matrix.python-version }} + # ruff: + # uses: ./.github/workflows/make.yml + # strategy: + # matrix: + # python-version: ['3.9', '3.10'] + # with: + # make: checkruff + # python-version: ${{ matrix.python-version }} - mypy: - uses: ./.github/workflows/make.yml - strategy: - matrix: - python-version: ['3.9', '3.10'] - with: - make: mypy - python-version: ${{ matrix.python-version }} + # mypy: + # uses: ./.github/workflows/make.yml + # strategy: + # matrix: + # python-version: ['3.9', '3.10'] + # with: + # make: mypy + # python-version: ${{ matrix.python-version }} - pyright: - uses: ./.github/workflows/make.yml - strategy: - matrix: - python-version: ['3.9', '3.10'] - with: - make: pyright - python-version: ${{ matrix.python-version }} - npm: true + # pyright: + # uses: ./.github/workflows/make.yml + # strategy: + # matrix: + # python-version: ['3.9', '3.10'] + # with: + # make: pyright + # python-version: ${{ matrix.python-version }} + # npm: true - prettier: - uses: ./.github/workflows/make.yml - with: - make: checkprettier - npm: true + # prettier: + # uses: ./.github/workflows/make.yml + # with: + # make: checkprettier + # npm: true diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml deleted file mode 100644 index 9618686..0000000 --- a/.github/workflows/make.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: make - -on: - workflow_call: - inputs: - make: - description: 'make command that is run' - required: true - type: string - npm: - description: 'use npm install' - default: false - type: boolean - python-version: - description: 'python version' - type: string - default: '3.10' - -jobs: - make: - name: ${{ inputs.make }} (${{ inputs.python-version }}) - strategy: - matrix: - os-version: ['ubuntu-latest'] - node-version: ['18.x'] - runs-on: ${{ matrix.os-version }} - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/prepare - with: - python-version: ${{ inputs.python-version }} - node-version: ${{ matrix.node-version }} - npm: ${{ inputs.npm }} - - run: make ${{ inputs.make }}