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

This commit is contained in:
Seaswimmer 2024-01-29 15:29:50 -05:00
parent 435cc2d72d
commit 6e44fd9235
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1,30 +1,20 @@
name: Pylint name: Actions
on: [push] on:
push:
branches:
- 'main'
pull_request:
jobs: jobs:
Pylint: Lint Code (Pylint):
runs-on: docker runs-on: docker
strategy: container: coastalcommits.com/seaswimmerthefsh/actionscontainers-galaxycogs:latest
matrix:
python-version: ["3.10"]
container: catthehacker/ubuntu:act-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3.6.0 uses: actions/checkout@v3
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 }} -
- name: Install dependencies - name: Install dependencies
run: | run: poetry install --with dev --no-root
export PATH="$HOME/.local/bin:$PATH"
poetry env use ${{ matrix.python-version }} - name: Analysing code with Pylint
poetry install --with dev run: pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
- 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')