diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef6a2ab..2597e06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,7 @@ on: branches: [main] pull_request: types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + workflow_dispatch: permissions: contents: read @@ -13,13 +14,17 @@ concurrency: cancel-in-progress: true jobs: - python: - 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')) }} + linux: + name: linux (py=${{ matrix.python-version }}) runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: ['3.11','3.12'] + python-version: + - "3.11" + - "3.12" + env: + PYTHONPATH: src steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -31,3 +36,21 @@ jobs: - run: black --check . - run: pytest -q - run: mypy . + + windows_optional: + name: windows (optional) + runs-on: windows-latest + continue-on-error: true + env: + PYTHONPATH: src + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - run: python -m pip install -U pip + - run: pip install ruff black pytest mypy + - run: ruff check . + - run: black --check . + - run: pytest -q + - run: mypy . diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e9b5f3c..e2a807f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -4,6 +4,7 @@ on: branches: [main] pull_request: types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + workflow_dispatch: permissions: contents: read @@ -15,7 +16,6 @@ concurrency: jobs: analyze: - 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')) }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index b35b132..32bba7c 100644 --- a/README.md +++ b/README.md @@ -1 +1,6 @@ +
+
+
+