feat(workflow): changed workflow from the old manual installs to using a docker image for faster runs
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 22s
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 22s
This commit is contained in:
parent
435cc2d72d
commit
6e44fd9235
1 changed files with 14 additions and 24 deletions
|
@ -1,30 +1,20 @@
|
|||
name: Pylint
|
||||
on: [push]
|
||||
name: Actions
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
Pylint:
|
||||
Lint Code (Pylint):
|
||||
runs-on: docker
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.10"]
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-galaxycogs:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3.6.0
|
||||
with:
|
||||
token: ${{ secrets.COASTALCOMMITSTOKEN}}
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install Poetry
|
||||
run: curl -sSL https://cdn.seaswimmer.cc/go/poetry | python${{ matrix.python-version }} -
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
poetry env use ${{ matrix.python-version }}
|
||||
poetry install --with dev
|
||||
- name: Analysing the code with Pylint
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
poetry run pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
||||
run: poetry install --with dev --no-root
|
||||
|
||||
- name: Analysing code with Pylint
|
||||
run: pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
||||
|
|
Loading…
Reference in a new issue