Skip to content

Merge pull request #192 from qiyunzhu/filter #141

Merge pull request #192 from qiyunzhu/filter

Merge pull request #192 from qiyunzhu/filter #141

Workflow file for this run

name: main CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
max-parallel: 5
matrix:
os: ['ubuntu']
python-version: ['3.6', '3.8', '3.10', '3.12']
steps:
- name: Set up Conda
- uses: actions/checkout@v4
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