Skip to content

Delete .github/workflows/main.yml #12

Delete .github/workflows/main.yml

Delete .github/workflows/main.yml #12

Workflow file for this run

name: Grok-1 Workflow
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pytest
- name: Lint code
run: flake8 .
- name: Build and deploy
run: |
python setup.py build
python setup.py bdist_wheel
twine upload dist/*
- name: Update version
run: |
python version.py
- name: Commit and push changes
run: |
git add .
git commit -m "Updated version"
git push origin main
- name: Generate documentation
run: |
pip install sphinx
sphinx-build -b html docs/source docs/_build/html
- name: Create GitHub release
uses: actions/create-release@v1
with:
tag-name: ${{ github.sha }}
release-name: 'Grok-1 Release'
draft: false
prerelease: false
- name: Update README
run: |
echo "Grok-1 has been updated to version ${{ github.sha }}" >> README.md
git add README.md
git commit -m "Updated README"
git push origin main