support-organizer/.forgejo/workflows/ci.yml
Firq 832196e77e
All checks were successful
/ backend-pylint (push) Successful in 26s
/ build:package (push) Successful in 12s
added working_directory directive
2023-12-20 17:25:33 +01:00

43 lines
1.2 KiB
YAML

on:
push:
jobs:
backend-pylint:
runs-on: docker
container: nikolaik/python-nodejs:python3.11-nodejs21
steps:
- name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages
working-directory: ./backend
run: |
pip install -e . -q
python -m pip list --format=columns --disable-pip-version-check
pip install pylint~=2.17.7 --disable-pip-version-check -q
- name: Run pylint
working-directory: ./backend
run: |
pylint --version
pylint **/*.py --exit-zero
build:package:
needs: ["backend-pylint"]
runs-on: docker
container: nikolaik/python-nodejs:python3.11-nodejs21
steps:
- name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages
working-directory: ./backend
run: pip install build
- name: Build package
working-directory: ./backend
run: |
python -m build
cp dist ../dist -r
- name: Save build artifacts
uses: https://code.forgejo.org/actions/upload-artifact@v3
with:
name: packages
path: dist/*