Skip to content

Generate Constraints #41

Generate Constraints

Generate Constraints #41

name: Generate Constraints
on:
workflow_dispatch: # Allows manual triggering from the GitHub Actions tab
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 required packages
run: |
python -m pip install --upgrade pip
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]
- name: Run release script
run: |
python release.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-stable.txt constraints-testing.txt
git commit -m "Update constraints files"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}