From fa2ca88bf5ba31533163fe047d43b95951af0b6c Mon Sep 17 00:00:00 2001 From: introkun Date: Fri, 29 Mar 2024 20:35:58 -0300 Subject: [PATCH] moved check into separarte job --- .github/workflows/check_typos.yml | 36 +++++++++++++++++++++++++++++++ .github/workflows/run_tests.yml | 8 ------- 2 files changed, 36 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/check_typos.yml diff --git a/.github/workflows/check_typos.yml b/.github/workflows/check_typos.yml new file mode 100644 index 000000000..6d036df6c --- /dev/null +++ b/.github/workflows/check_typos.yml @@ -0,0 +1,36 @@ +name: Check Typos +on: + push: + branches: + - main + pull_request: + +jobs: + check-typos: + strategy: + fail-fast: true + matrix: + os: [ ubuntu-latest ] + python-version: [ "3.*" ] + + runs-on: ${{ matrix.os }} + + steps: + #---------------------------------------------- + # check-out repo and set-up python + #---------------------------------------------- + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + #---------------------------------------------- + # check grammar with typos + #---------------------------------------------- + - name: Check grammar with typos + run: | + pip3 install typos + typos \ No newline at end of file diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 68adac5d6..fa1a82c95 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -42,14 +42,6 @@ jobs: virtualenvs-in-project: false installer-parallel: true - #---------------------------------------------- - # check grammar with typos - #---------------------------------------------- - - name: Check grammar with typos - run: | - pip3 install typos - typos - #---------------------------------------------- # copy docker compose file #----------------------------------------------