feat(cli): provide standalone execution of cijoe-script #531
This file contains 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: selftest | |
on: | |
pull_request: | |
push: | |
branches: | |
- "!gh-pages" | |
- "**" | |
tags: | |
- "v*" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
selftest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, macos-latest] | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- name: Grab source | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Python dependencies and their versions | |
run: | | |
brew update || true | |
brew upgrade pipx || true | |
make deps | |
make info | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: All | |
run: | | |
make all | |
cijoe -r | |
publish: | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: selftest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Python dependencies and their versions | |
run: | | |
make deps | |
make info | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
make release |