-
Notifications
You must be signed in to change notification settings - Fork 23
52 lines (43 loc) · 1.3 KB
/
pytest.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: pytest
on:
push:
branches:
- main
tags-ignore:
- '**'
pull_request:
jobs:
pytest:
name: "Python ${{ matrix.py }} on OS ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
env:
COVERAGE_SINGLE: 78
COVERAGE_TOTAL: 78
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
py: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: "actions/checkout@v3"
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- name: Install dependencies for testing
run: |
pip install --upgrade pip
pip install pytest pytest-md pytest-emoji pytest-cov
- name: Install development version
run: |
# Need editable mode in order to include the test files
pip install --user git+https://github.com/theochem/iodata.git@master
pip install -e .[dev,iodata]
- name: Install Libcint library
if: ${{ matrix.os != 'windows-latest' }}
run: |
echo "${{ matrix.os }}"
sudo apt-get install -y sbcl
USE_LIBCINT=1 ./tools/install_libcint.sh
- name: Run Pytest
run: |
pytest --cov=./gbasis/ --cov-fail-under=78 --cov-report term .