Skip to content

SciDataLib-76 Scidata 'rights' limited to 1 entry #237

SciDataLib-76 Scidata 'rights' limited to 1 entry

SciDataLib-76 Scidata 'rights' limited to 1 entry #237

Workflow file for this run

name: GitHub Actions
env:
PYTHON_MAIN_VERSION: 3.8
POETRY_VERSION: 1.4.2
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install poetry==${{ env.POETRY_VERSION }}
poetry install
- name: Lint
if: ${{ matrix.python-version == env.PYTHON_MAIN_VERSION }}
run: |
poetry run flake8 --count
- name: Test
run: |
poetry run pytest tests/
- name: Coverage
if: ${{ matrix.python-version == env.PYTHON_MAIN_VERSION }}
run: |
poetry run pytest --cov=scidatalib --cov-report=term-missing tests/
pip install coverage
bash <(curl -s https://codecov.io/bash)