mirror of
https://github.com/codespell-project/codespell.git
synced 2025-05-17 15:36:17 +08:00
Harden GitHub CI configuration (#2655)
This commit is contained in:
3
.github/workflows/black.yml
vendored
3
.github/workflows/black.yml
vendored
@ -3,10 +3,13 @@ name: black
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
black:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: psf/black@stable
|
||||
|
7
.github/workflows/codespell-private.yml
vendored
7
.github/workflows/codespell-private.yml
vendored
@ -7,6 +7,7 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
|
||||
cancel-in-progress: true
|
||||
on: [push, pull_request]
|
||||
permissions: {}
|
||||
jobs:
|
||||
test:
|
||||
env:
|
||||
@ -25,6 +26,8 @@ jobs:
|
||||
name: Python ${{ matrix.python-version }} test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
@ -53,6 +56,8 @@ jobs:
|
||||
with:
|
||||
python-version: 3.x
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Install general dependencies
|
||||
run: pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
|
||||
- name: Install codespell dependencies
|
||||
@ -68,6 +73,8 @@ jobs:
|
||||
with:
|
||||
python-version: 3.x
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Install codespell dependencies
|
||||
run: pip install -e ".[dev]"
|
||||
- name: Flake8 with annotations
|
||||
|
3
.github/workflows/codespell-windows.yml
vendored
3
.github/workflows/codespell-windows.yml
vendored
@ -2,12 +2,15 @@ name: Test Codespell Windows
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
permissions: {}
|
||||
jobs:
|
||||
test-windows:
|
||||
name: Test Windows
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
|
3
.github/workflows/codespell.yml
vendored
3
.github/workflows/codespell.yml
vendored
@ -3,12 +3,15 @@
|
||||
# https://github.com/codespell-project/codespell
|
||||
name: codespell
|
||||
on: [push, pull_request]
|
||||
permissions: {}
|
||||
jobs:
|
||||
codespell:
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: codespell-project/actions-codespell@master
|
||||
with:
|
||||
check_filenames: true
|
||||
|
4
.github/workflows/isort.yml
vendored
4
.github/workflows/isort.yml
vendored
@ -4,9 +4,13 @@ on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
isort:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: isort/isort-action@v1
|
||||
|
4
.github/workflows/mypy.yml
vendored
4
.github/workflows/mypy.yml
vendored
@ -4,11 +4,15 @@ on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
mypy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v4
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -19,6 +19,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
|
Reference in New Issue
Block a user