Skip to content

fix console thread not terminate when main thread ends #84

fix console thread not terminate when main thread ends

fix console thread not terminate when main thread ends #84

name: Update start.py
on:
push:
branches:
- main
pull_request:
types: [opened, edited]
jobs:
update-start-py:
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Update start.py
run: |
python .github/update_start_py.py
- name: Commit and push changes
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add start.py
git commit -m "Build start.py from the latest commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Python 3.10
uses: actions/setup-python@main
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest tests/test_workflow.py