From 11ca8740741cfefef91df819948437ccda162b14 Mon Sep 17 00:00:00 2001 From: Federico Negri Date: Mon, 6 Jan 2025 08:05:50 +0100 Subject: [PATCH] improve ci style checks --- .github/workflows/ci_cd.yml | 11 +++-------- .github/workflows/nightly.yml | 24 ++---------------------- 2 files changed, 5 insertions(+), 30 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 7bb88133..3f7acbeb 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -37,14 +37,9 @@ permissions: jobs: - doc-style: - name: Documentation Style Check - runs-on: ubuntu-latest - steps: - - name: PyAnsys documentation style checks - uses: ansys/actions/doc-style@v8 - with: - token: ${{ secrets.GITHUB_TOKEN }} + style: + uses: ./.github/workflows/style.yml + secrets: inherit tests: strategy: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 733c5b07..6c9ac938 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -25,28 +25,8 @@ concurrency: jobs: style: - name: Code style - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: ${{ env.MAIN_PYTHON_VERSION }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip setuptools tox - - name: Test with tox - run: tox -e style - - doc-style: - name: Documentation Style Check - runs-on: ubuntu-latest - steps: - - name: PyAnsys documentation style checks - uses: ansys/actions/doc-style@v8 - with: - token: ${{ secrets.GITHUB_TOKEN }} + uses: ./.github/workflows/style.yml + secrets: inherit tests: strategy: