-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (52 loc) · 1.39 KB
/
Copy pathtesting.yml
File metadata and controls
56 lines (52 loc) · 1.39 KB
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
# Workflow to perform testings and code coverage.
#
# To run this check locally from the `doc` folder:
#
# .. code-block:: bash
#
# $ nosetests --with-coverage --cover-package=hopla --verbosity=2
# --with-doctest --doctest-options='+ELLIPSIS,+NORMALIZE_WHITESPACE'
###
name: "Testing[nosetests]"
on:
push:
branches:
- "master"
- "main"
- "dev"
pull_request:
branches:
- "*"
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.12]
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install numpy
python -m pip install pynose coverage[toml]
python -m pip install --progress-bar off .
- name: Run unit tests
run: |
nosetests --with-coverage --cover-package=hopla --verbosity=2 --with-doctest --doctest-options='+ELLIPSIS,+NORMALIZE_WHITESPACE'
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
debug: true
fail-on-error: true