Skip to content

Generate Alpha Constraints #88

Generate Alpha Constraints

Generate Alpha Constraints #88

name: Generate Alpha Constraints
on:
workflow_dispatch: # Allows manual triggering from the GitHub Actions tab
schedule:
- cron: '0 */6 * * *' # Runs every 6 hours
jobs:
generate-constraints:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # Specify the Python version you need
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt install python3-dev swig libssl-dev libfann-dev portaudio19-dev libpulse-dev python3-fann2
python -m pip install build wheel
- name: Install alpha packages
run: |
pip install ovos-core[mycroft,lgpl,plugins,skills-essential,skills-extra,skills-audio,skills-gui,skills-internet,skills-media,skills-desktop] ovos-PHAL[extras,linux,mk1,mk2] ovos-dinkum-listener[extras,linux,onnx] --pre
- name: Run alpha script
run: |
python release_alpha.py
- name: Configure Git
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit generated constraints files
run: |
git add constraints-alpha.txt
git commit -m "Update constraints files"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}