Skip to content

feat(cli): provide standalone execution of cijoe-script #531

feat(cli): provide standalone execution of cijoe-script

feat(cli): provide standalone execution of cijoe-script #531

Workflow file for this run

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