Skip to content

Commit 6d0e929

Browse files
author
CoderDeltaLAN
committed
ci: enable workflow_dispatch for CI and CodeQL
1 parent 14331a6 commit 6d0e929

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,16 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
<<<<<<< HEAD
2423
python-version:
2524
- "3.11"
2625
- "3.12"
27-
||||||| parent of 9d52d28 (ci: set PYTHONPATH=src for pytest; keep Windows optional)
28-
python-version: ['3.11','3.12']
29-
name: linux (py=${{ matrix.python-version }})
30-
=======
31-
python-version: ["3.11","3.12"]
32-
>>>>>>> 9d52d28 (ci: set PYTHONPATH=src for pytest; keep Windows optional)
3326
env:
3427
PYTHONPATH: src
3528
steps:
3629
- uses: actions/checkout@v4
3730
- uses: actions/setup-python@v5
38-
with: { python-version: ${{ matrix.python-version }} }
31+
with:
32+
python-version: ${{ matrix.python-version }}
3933
- run: python -m pip install -U pip
4034
- run: pip install ruff black pytest mypy
4135
- run: ruff check .
@@ -52,15 +46,8 @@ jobs:
5246
steps:
5347
- uses: actions/checkout@v4
5448
- uses: actions/setup-python@v5
55-
<<<<<<< HEAD
5649
with:
5750
python-version: "3.12"
58-
||||||| parent of 9d52d28 (ci: set PYTHONPATH=src for pytest; keep Windows optional)
59-
with:
60-
python-version: ${{ matrix.python-version }}
61-
=======
62-
with: { python-version: "3.12" }
63-
>>>>>>> 9d52d28 (ci: set PYTHONPATH=src for pytest; keep Windows optional)
6451
- run: python -m pip install -U pip
6552
- run: pip install ruff black pytest mypy
6653
- run: ruff check .

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches: [main]
55
pull_request:
66
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
7+
workflow_dispatch:
78

89
permissions:
910
contents: read
@@ -15,7 +16,6 @@ concurrency:
1516

1617
jobs:
1718
analyze:
18-
if: ${{ (github.event_name == 'push' && startsWith(github.ref,'refs/heads/main')) || (github.event_name == 'pull_request' && github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name,'ready')) }}
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)