Skip to content

github action ruff tests #6

github action ruff tests

github action ruff tests #6

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.8']
steps:
- uses: actions/checkout@v2
- name: Set up Conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: Install dependencies
run: conda install --file ci/conda_requirements.txt
- name: Install CI packages
run: conda install pycodestyle coverage ruff
- 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
- name: Ruff
uses: chartboost/ruff-action@v1
with:
args: --select W