add workflows
This commit is contained in:
parent
921c35a316
commit
0b0393b38f
4 changed files with 52 additions and 1 deletions
24
.forgejo/workflows/build.yaml
Normal file
24
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Build
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
Build and Push:
|
||||
runs-on: docker
|
||||
container: www.coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: python3 -m venv .venv && ./.venv/bin/pip install -r ./requirements.txt
|
||||
|
||||
- name: Build the package
|
||||
run: ./.venv/bin/python -m build
|
||||
|
||||
- name: Publish the package
|
||||
uses: actions/pypi-publish@v1
|
||||
with:
|
||||
password: {{ secrets.PYPI_API_TOKEN }}
|
24
.forgejo/workflows/lint.yaml
Normal file
24
.forgejo/workflows/lint.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Lint
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
Lint Code (Ruff & Pylint):
|
||||
runs-on: docker
|
||||
container: www.coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: python3 -m venv .venv && ./.venv/bin/pip install -r ./requirements.txt
|
||||
|
||||
- name: Analysing code with Ruff
|
||||
run: ./.venv/bin/ruff check $(git ls-files '*.py')
|
||||
continue-on-error: true
|
||||
|
||||
- name: Analysing code with Pylint
|
||||
run: ./.venv/bin/pylint --rcfile=.forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "stellarismodparser"
|
||||
version = "1.0.1"
|
||||
version = "1.0.2"
|
||||
authors = [
|
||||
{ name="SeaswimmerTheFsh", email="seaswimmerthefsh@gmail.com" },
|
||||
]
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
pylint==3.2.3
|
||||
ruff==0.4.9
|
||||
semver==3.0.2
|
||||
build==0.6.0
|
||||
|
|
Loading…
Reference in a new issue