diff --git a/.deepsource.toml b/.deepsource.toml new file mode 100644 index 0000000..252f3a4 --- /dev/null +++ b/.deepsource.toml @@ -0,0 +1,29 @@ +version = 1 + +test_patterns = [ + "tests/**", + "test/**", + "**/*test*", + "**/*.test.*", +] + +exclude_patterns = [ + "node_modules/**", + "dist/**", + "target/**", + "vendor/**", + "build/**", + "coverage/**", + "bundle.js", + "**/bundle.js", + "**/generated/**", +] + +[[analyzers]] +name = "python" +enabled = true + + [analyzers.meta] + runtime_version = "3.x.x" + max_line_length = 120 + cyclomatic_complexity_threshold = "high" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 577a2ba..ffb1161 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_5070X_ENABLED == 'true' && (((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && startsWith(github.ref, 'refs/heads/')) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) && 'ci-5070x-linux' || 'ubuntu-latest' }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4