-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (41 loc) · 1.14 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
52
name: main CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}-latest
defaults:
run:
shell: bash -l {0}
strategy:
max-parallel: 5
matrix:
os: ['ubuntu']
python-version: ['3.6', '3.8', '3.10', '3.12']
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install dependencies
run: conda install --file ci/conda_requirements.txt
- name: Install CI packages
run: conda install pycodestyle coverage
- name: Install program
run: pip install -e .
- name: Check style
run: pycodestyle .
- name: Run unit tests
run: coverage run -m unittest && coverage lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov