Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,23 @@ on:
workflow_call:
workflow_dispatch:

permissions: {}

jobs:
check_nitypes:
name: Check nitypes
uses: ./.github/workflows/check_nitypes.yml
check_docs:
name: Check docs
uses: ./.github/workflows/check_docs.yml
check_workflows:
name: Check workflows
uses: ./.github/workflows/check_workflows.yml
permissions:
security-events: write
checks_succeeded:
name: Checks succeeded
needs: [check_nitypes, check_docs]
needs: [check_nitypes, check_docs, check_workflows]
runs-on: ubuntu-latest
steps:
- run: exit 0
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
run_ci:
name: Run CI
uses: ./.github/workflows/CI.yml
permissions:
contents: read
checks: write
pull-requests: write
pull-requests: write
security-events: write
6 changes: 5 additions & 1 deletion .github/workflows/check_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ on:
workflow_call:
workflow_dispatch:

permissions: {}

jobs:
check_docs:
name: Check docs
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: ni/python-actions/setup-python@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
id: setup-python
Expand All @@ -31,4 +35,4 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: nitypes-docs
path: docs/_build/
path: docs/_build/
6 changes: 5 additions & 1 deletion .github/workflows/check_nitypes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
workflow_call:
workflow_dispatch:

permissions: {}

jobs:
check_nitypes:
name: Check nitypes
Expand All @@ -17,6 +19,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: ni/python-actions/setup-python@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
with:
Expand All @@ -26,4 +30,4 @@ jobs:
- name: Analyze Python project
uses: ni/python-actions/analyze-project@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
- name: Bandit security checks
run: poetry run bandit -c pyproject.toml -r src/nitypes
run: poetry run bandit -c pyproject.toml -r src/nitypes
21 changes: 21 additions & 0 deletions .github/workflows/check_workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check workflows

on:
workflow_call:
workflow_dispatch:

permissions: {}

jobs:
zizmor:
name: Run zizmor
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
10 changes: 10 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ env:
}
}

permissions: {}

jobs:
check_nitypes:
name: Check nitypes
Expand All @@ -44,10 +46,14 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: ni/python-actions/setup-python@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
with:
use-cache: false
- name: Check project version
if: github.event_name == 'release'
uses: ni/python-actions/check-project-version@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
Expand Down Expand Up @@ -90,9 +96,13 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: ni/python-actions/setup-python@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
with:
use-cache: false
- name: Update project version
uses: ni/python-actions/update-project-version@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
4 changes: 4 additions & 0 deletions .github/workflows/report_test_results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
workflow_call:
workflow_dispatch:

permissions: {}

jobs:
report_test_results:
name: Report test results
Expand All @@ -15,6 +17,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Download test results
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
workflow_call:
workflow_dispatch:

permissions: {}

jobs:
run_unit_tests:
name: Run unit tests
Expand All @@ -18,6 +20,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: ni/python-actions/setup-python@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
id: setup-python
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run_unit_tests_oldest_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
workflow_call:
workflow_dispatch:

permissions: {}

jobs:
run_unit_tests_oldest_deps:
name: Run unit tests (oldest deps)
Expand All @@ -18,6 +20,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: ni/python-actions/setup-python@a2894c635a2cba635a1086c1f89796fec2c52f74 # v0.7.2
id: setup-python
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sync_github_issues_to_azdo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
issue_comment:
types: [created, edited, deleted]

permissions: {}

jobs:
alert:
if: ${{ !github.event.issue.pull_request && github.event.issue.title != 'Dependency Dashboard' }}
Expand Down
Loading