Skip to content

Commit

Permalink
squash! feat: add action.yml for Github action
Browse files Browse the repository at this point in the history
Added github action to ci + modified readme help

Signed-off-by: Ethan Perruzza <[email protected]>
  • Loading branch information
EthanPERRUZZA committed Sep 19, 2024
1 parent d581dc6 commit 8509767
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,17 @@ on:
- master

jobs:
check:
check_dco:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
name: Check DCO
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Check DCO
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 dco_check/dco_check.py --verbose
- name: Run dco-check
uses: christophebedard/[email protected]
with:
python-version: ${{ matrix.python-version }}
args: '--verbose'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,15 @@ jobs:
steps:
- name: Run dco-check
uses: christophebedard/[email protected]
with:
python-version: '3.12'
args: '--verbose'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

Please note that the `with:` property is optional, the default python version is 3.12 and no additional arguments are passed by default.

### GitLab

```yaml
Expand Down

0 comments on commit 8509767

Please sign in to comment.