PyFlowery/.forgejo/workflows/actions.yaml
cswimr 4becff70e6
Some checks failed
Actions / lint (push) Failing after 11s
Actions / build (push) Successful in 13s
version 1.0.0
2024-09-15 23:12:30 -04:00

55 lines
1.5 KiB
YAML

name: Actions
on:
push:
pull_request:
jobs:
build:
runs-on: docker
container: www.coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: poetry install
- name: Build the package
run: poetry build
- name: Upload the package
uses: actions/upload-artifact@v3
with:
name: pyflowery
path: ./dist/*
- name: Publish to CoastalCommits
if: startsWith(github.ref, 'refs/tags/')
uses: actions/pypi-publish@v1.8.14
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.COASTALCOMMITSTOKEN }}
repository_url: https://www.coastalcommits.com/api/packages/${{ github.repository_owner }}/pypi
- name: Publish to PyPi
if: startsWith(github.ref, 'refs/tags/')
uses: actions/pypi-publish@v1.8.14
with:
password: ${{ secrets.PYPI_API_TOKEN }}
lint:
runs-on: docker
container: www.coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: poetry install
- name: Analysing code with Ruff
run: poetry run ruff check $(git ls-files '*.py')
continue-on-error: true
- name: Analysing code with Pylint
run: poetry run pylint --rcfile=.forgejo/workflows/config/.pylintrc $(git ls-files '*.py')