add workflows

This commit is contained in:
Seaswimmer 2024-06-16 06:56:12 -04:00
parent 921c35a316
commit 0b0393b38f
No known key found for this signature in database
4 changed files with 52 additions and 1 deletions

View 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 }}

View 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')

View file

@ -1,6 +1,6 @@
[project]
name = "stellarismodparser"
version = "1.0.1"
version = "1.0.2"
authors = [
{ name="SeaswimmerTheFsh", email="seaswimmerthefsh@gmail.com" },
]

View file

@ -1 +1,4 @@
pylint==3.2.3
ruff==0.4.9
semver==3.0.2
build==0.6.0