-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (29 loc) · 836 Bytes
/
workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI-CD
on:
push:
branches:
- dev
env:
PLMBLAST_TESTDATA: /data/test_data
PLMBLAST_DB: /data/ecod30db_mini
PLMBLAST_WORKERS: 4
# This is what will cancel the workflow
# source: https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: self-hosted
# not ignore bash profile files
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- run: |
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: run tests
run: pytest tests/test_script.py --maxfail=1