Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: Continous integration of Stacky

on:
pull_request:
branches:
- master
- main
types: [opened, synchronize, edited, ready_for_review]

jobs:

ci:
name: build and archive
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4.5.0
with:
python-version: '3.10'
- id: build
uses: OpenAstronomy/build-python-dist@v1
with:
pure_python_wheel: true
- name: Persist build artifacts
uses: actions/upload-artifact@v3
with:
name: stacky_draft_wheel
path: |
dist/*.whl
retention-days: 2


linter:
name: runner / black formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./src"

typecheck:
name: static type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4.5.0
with:
python-version: '3.10'
- run: pip install asciitree ansicolors simple-term-menu mypy
- run: mypy ./src/stacky/stacky.py

35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Act on release created

on:
push:
tags:
- 'v*' # Run workflow on version tags, e.g. v1.0.0.

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/setup-python@v4.5.0
with:
python-version: '3.10'
- name: build
uses: OpenAstronomy/build-python-dist@v1
with:
pure_python_wheel: true

- run: sha256sum dist/*.whl >dist/$(ls -1 dist/*whl |sed 's@.*/@@').sha256

- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
files: |
./dist/*.whl
./dist/*.whl.sha256
3 changes: 2 additions & 1 deletion src/stacky/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .stacky import main


def runner():
main()
main()