2024-01-29 15:29:50 -05:00
|
|
|
name: Actions
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
pull_request:
|
2023-09-22 18:52:28 -04:00
|
|
|
|
|
|
|
jobs:
|
2024-01-29 15:29:50 -05:00
|
|
|
Lint Code (Pylint):
|
2023-09-22 18:52:28 -04:00
|
|
|
runs-on: docker
|
2024-01-29 15:29:50 -05:00
|
|
|
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-galaxycogs:latest
|
2023-09-22 18:52:28 -04:00
|
|
|
steps:
|
2023-09-22 19:17:18 -04:00
|
|
|
- name: Checkout
|
2024-01-29 15:29:50 -05:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2023-09-22 18:52:28 -04:00
|
|
|
- name: Install dependencies
|
2024-01-29 15:29:50 -05:00
|
|
|
run: poetry install --with dev --no-root
|
|
|
|
|
|
|
|
- name: Analysing code with Pylint
|
|
|
|
run: pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|