Skip to content

Merge pull request #193 from qiyunzhu/filter #143

Merge pull request #193 from qiyunzhu/filter

Merge pull request #193 from qiyunzhu/filter #143

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

Check failure on line 21 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / main CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 21, Col: 9): 'uses' is already defined
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