From 80fab6ada3f3bed574e28c568f68e1a0e2d73d33 Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Wed, 20 Sep 2023 16:56:37 +0200 Subject: [PATCH] switch to composite action --- .github/workflows/build.yaml | 53 ++++++++++++++++-------------------- .github/workflows/test.yaml | 2 +- 2 files changed, 25 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4d3c8d0..657ccf6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,29 +1,24 @@ -name: Reusable build workflow - -on: - workflow_call: - inputs: - os: - default: "ubuntu-20.04" - description: "Value for 'runs-on'" - required: false - type: string - python: - default: "3.9" - description: "Value for 'python-version'" - required: false - type: string - -jobs: - build: - runs-on: ${{ inputs.os }} - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: ${{ inputs.python }} - - name: Install dependencies - run: | - pip install poetry - poetry install --no-interaction +name: "Reusable build workflow" +inputs: + # os: + # default: "ubuntu-20.04" + # description: "Value for 'runs-on'" + # required: false + # type: string + python: + default: "3.9" + description: "Value for 'python-version'" + required: false + type: string +runs: + using: "composite" + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ inputs.python }} + - name: Install dependencies + run: | + pip install poetry + poetry install --no-interaction diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5e8f957..e243f5a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -45,8 +45,8 @@ jobs: poetry install --no-interaction formatting: - uses: ./.github/workflows/build.yml steps: + - uses: ./.github/workflows/build.yml - name: Test formatting with isort and black run: | poetry run isort --check ossrfc/