-
Notifications
You must be signed in to change notification settings - Fork 12
30 lines (28 loc) · 754 Bytes
/
ci.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
name: pyHWM14 Repository CI Workflow
on:
push:
branches: [ main ]
tags:
- v*.*.*
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python_version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m venv .venv
.venv/bin/pip install coveralls numpy
.venv/bin/pip install -e .
- name: Run code test in Python programs
run: |
.venv/bin/coverage run --source=. --module unittest discover --start-directory tests --verbose