Adding option to add all to stacky commit stacky commit --a
#104
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Continous integration of Stacky | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - main | |
| types: [opened, synchronize, edited, ready_for_review] | |
| jobs: | |
| ci_bazel: | |
| name: bazel build linux | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '>=1.20.0' | |
| - uses: actions/setup-python@v5.2.0 | |
| with: | |
| python-version: '3.10' | |
| - run: curl -L -o bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64 | |
| - run: chmod a+x bazelisk | |
| - run: ln -s bazelisk bazel | |
| - run: pip install xar | |
| - run: sudo apt-get install squashfs-tools | |
| - id: bazel_build | |
| run: bazel build //:stacky.xar && bazel build //:stacky --build_python_zip | |
| - name: Persist build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: stacky_draft | |
| path: | | |
| bazel-bin/stacky | |
| bazel-bin/stacky.xar | |
| retention-days: 2 | |
| ci: | |
| name: build and archive | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5.2.0 | |
| with: | |
| python-version: '3.10' | |
| - name: Install pypa/build | |
| run: >- | |
| python3 -m | |
| pip install | |
| build | |
| --user | |
| - name: Build a binary wheel and a source tarball | |
| run: python3 -m build | |
| - name: Persist build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: stacky_draft_wheel | |
| path: | | |
| dist/*.whl | |
| retention-days: 2 | |
| linter: | |
| name: runner / black formatter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: psf/black@stable | |
| with: | |
| options: "--check --verbose" | |
| src: "./src" | |
| unittest: | |
| name: run unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5.2.0 | |
| with: | |
| python-version: '3.10' | |
| - run: pip install asciitree ansicolors simple-term-menu | |
| - run: ./src/stacky/stacky_test.py | |
| typecheck: | |
| name: static type check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5.2.0 | |
| with: | |
| python-version: '3.10' | |
| - run: pip install asciitree ansicolors simple-term-menu mypy | |
| - run: mypy ./src/stacky/stacky.py |