Latest-3D #198
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
# This is a basic workflow to help you get started with Actions | |
name: Latest-3D | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
schedule: | |
- cron: '30 15 * * 5' | |
# push: | |
# branches: [ main ] | |
# pull_request: | |
# branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
# Runs a single command using the runners shell | |
- name: Run a one-line script | |
run: echo Hello, world! | |
# Setup Miniconda | |
- name: Setup Miniconda | |
uses: conda-incubator/[email protected] | |
with: | |
auto-update-conda: true | |
# Install and run MAKEDB | |
- name: Install BioPython & run 3dStructureWorkflow.py | |
shell: bash -l {0} | |
run: | | |
conda install biopython | |
conda install -c bioconda blast | |
python static/pyScripts/3dStructureWorkflow.py | |
# run the test.py to get the latest SIFT and PDB FASTA files | |
#- name: execute test.py script | |
# run: python test.py | |
# Install and run MAKEDB | |
#- name: Install BLAST and run makeblastdb | |
# shell: bash -l {0} | |
# run: | | |
# conda install -c bioconda blast | |
# mkdir blastdb | |
# makeblastdb -in data/fasta/all_pdbs.fasta -dbtype 'prot' -out data/fasta/blastdb/all_pdbs | |
# commit | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "update data" -a | |
# push | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |