-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.05 KB
/
pytest_master_branch.yml
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
35
36
37
38
39
40
41
42
43
44
name: Pytest master branch
# This workflow will run `pytest` on the latest commit of the master
# branch, after having installed the package with pip.
# It will run on the latest Ubuntu and on the latest python.
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
# Also trigger on page_build, as well as release created events
page_build:
release:
types: # This configuration does not affect the page_build event above
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install the package from the git repo
run: pip install ./
- name: Install BLAST and VSEARCH
run: sudo apt-get install -y ncbi-blast+ vsearch
- name: Test with pytest
run: crest4 --pytest