pydantic version of genome_annotation model (genome_annotation.py) wa… #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: add dunder methods to genome_annotation model | |
on: | |
push: | |
paths: | |
- 'bkbit/models/genome_annotation.py' | |
permissions: | |
contents: write | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Run add_dunderMethods_genomeAnnotation | |
run: python bkbit/model_editors/add_dunderMethods_genomeAnnotation.py | |
- name: Commit changes | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email '[email protected]' | |
git add bkbit/models/genome_annotation.py | |
git commit -m 'Update genome_annotation.py with dunder methods' | |
git push |