diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 2cf08054..e0b26f21 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -3,6 +3,36 @@ on: pull_request: {} jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Initialize Env + shell: bash + env: + WORKSPACE: ${{ github.workspace }} + run: | + echo "$HOME/.local/bin:$PATH" >> $GITHUB_PATH + echo "GITHUB_WORKSPACE=\"`pwd`\"" >> $GITHUB_ENV + + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup + shell: bash + run: | + python -m pip install --user --upgrade pip setuptools wheel setuptools_scm nox + + - name: Run Style Check + shell: bash + continue-on-error: true + run: | + nox -s lint + test-torii: runs-on: ubuntu-latest strategy: @@ -32,17 +62,6 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Setup - shell: bash - run: | - python -m pip install --user --upgrade pip setuptools wheel setuptools_scm nox - - - - name: Run Style Check - shell: bash - run: | - nox -s lint - - name: Run Tests shell: bash timeout-minutes: 30 # Python 3.12 and 3.13 seem to just hang on testing ~sometimes~