Skip to content

run pytest only on ubuntu #88

run pytest only on ubuntu

run pytest only on ubuntu #88

Workflow file for this run

name: test
on:
push:
branches:
- develop
pull_request:
branches:
- develop
- main
jobs:
build:
name: Test installation
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
max-parallel: 5
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [ "3.10" ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up conda
uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge,bioconda,defaults
auto-activate-base: false
activate-environment: sincei
environment-file: requirements.yml
- name: Check environment
run: |
conda info
- name: List tools
run: |
conda list
- name: Install sincei
run: |
pip install .
which sincei
sincei --help
- name: Generate coverage report
if: matrix.os == 'ubuntu-latest'
run: |

Check failure on line 48 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
pip install pytest
pip install pytest-cov
pytest --cov=./
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
verbose: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable