-
Notifications
You must be signed in to change notification settings - Fork 55
65 lines (51 loc) · 1.74 KB
/
build-on-push-to-master.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: build-on-push-to-master
on:
push:
branches: master
# To be able to trigger a manual build
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: "3.11"
activate-environment: pyani-github
channels: defaults,bioconda,conda-forge
channel-priority: flexible
- name: Install pip
run: python -m pip install --upgrade pip
- name: Install Development Requirements
run: conda install --file requirements-dev.txt -y
- name: Install Requirements
run: conda install --file requirements.txt -y
- name: Install third-party tools
run: conda install --file requirements-thirdparty.txt -y
- name: Install FastANI
run: conda install --file requirements-fastani.txt -y
- name: Install PyQT
run: conda install --file requirements-pyqt-conda.txt -y
- name: Install pip requirements
run: pip install -r requirements-pip.txt
- name: Install pyani
run: pip install -e .
- name: Run Fast Tests with pytest
run: python -m pytest -v -m "not slow" --cov=pyani --cov-report xml:.coverage_fast.xml
- name: Upload pytest Results
uses: actions/upload-artifact@v4
with:
name: pytest-results-3.11
path: /pyani/test-results-3.11.xml
retention-days: 1
if: ${{ always() }}