Skip to content

Commit

Permalink
ci: pulled out the style lint into it's own job
Browse files Browse the repository at this point in the history
  • Loading branch information
lethalbit committed May 13, 2024
1 parent e831a0a commit 62af9fe
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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~
Expand Down

0 comments on commit 62af9fe

Please sign in to comment.