-
-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (34 loc) · 1.05 KB
/
continous_integration.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
name: GlobalChem API
on: [pull_request, push, workflow_dispatch]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.7", "3.8", "3.9"]
coverage-version: ["5.5"]
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install
run: |
python global_chem/setup.py install
pip install python-coveralls
pip install coveralls
pip install coverage==${{ matrix.coverage-version }}
pip install nose
- name: Run GlobalChem tests
env:
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
cd global_chem
python -m nose --verbose --with-coverage -s -w tests/