-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (37 loc) · 1.11 KB
/
workflow.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
name: CI
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
cfg:
- conda-env: base
python-version: 3.8
- conda-env: base
python-version: 3.9
- conda-env: base
python-version: "3.10"
env:
PYVER: ${{ matrix.cfg.python-version }}
CONDA_ENV: ${{ matrix.cfg.conda-env }}
steps:
- uses: actions/checkout@v2
- name: Create Environment
uses: conda-incubator/setup-miniconda@v2
with:
installer-url: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
activate-environment: test
environment-file: ${{ matrix.cfg.conda-env }}.yaml
python-version: ${{ matrix.cfg.python-version }}
auto-activate-base: false
- name: Install
shell: bash -l {0}
run: | # Install molsym
python -m pip install . --no-deps
- name: Test with pytest
shell: bash -l {0}
run: |
pytest --cov="molsym" --color=yes --cov-report=xml test/
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2