-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.46 KB
/
tests.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
name: tests
on:
push:
branches:
- "**"
tags:
- "!**"
workflow_call:
env:
POETRY_VERSION: 1.8.2
jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
PYTHON_VERSION: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: ${{env.POETRY_VERSION}}
installer-parallel: true
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
channels: bioconda,conda-forge
activate-environment: prymer
environment-file: prymer.yml
channel-priority: true
auto-update-conda: true
auto-activate-base: false
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install the project's dependencies
shell: bash -el {0}
run: poetry install
- name: Test the codebase
shell: bash -el {0}
run: poetry run pytest
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Test building the documentation
shell: bash -el {0}
run: poetry run mkdocs build --strict