Skip to content

Commit

Permalink
try add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
apple1417 committed Oct 10, 2024
1 parent 01ed7dc commit f8790eb
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on: [push, pull_request]

jobs:
spelling:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check spelling
uses: crate-ci/typos@master

pyright:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout stubs
uses: actions/checkout@v4
with:
repository: bl-sdk/pyunrealsdk
path: pyunrealsdk
sparse-checkout: |
stubs
- name: Add stubs to pyproject
run: sed -i 's/# CI ADD STUB PATH HERE/stubPath = "pyunrealsdk\/stubs"\nreportMissingModuleSource = false/' pyproject.toml

- name: Run pyright
uses: jakebailey/pyright-action@v2

ruff:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run Ruff Linting
uses: chartboost/ruff-action@v1

- name: Run Ruff Formatting
uses: chartboost/ruff-action@v1
with:
args: format --check
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ pythonVersion = "3.13"
typeCheckingMode = "strict"
pythonPlatform = "Windows"

# CI ADD STUB PATH HERE

[tool.ruff]
target-version = "py313"
line-length = 100
Expand Down

0 comments on commit f8790eb

Please sign in to comment.