Skip to content

Latest Scipp (Dataset -> DataGroup) #151

Latest Scipp (Dataset -> DataGroup)

Latest Scipp (Dataset -> DataGroup) #151

Workflow file for this run

name: CI using pip
on: [push, pull_request]
jobs:
CI_Testing:
strategy:
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e '.[dev]'
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 ./EasyReflectometry --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ./EasyReflectometry --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with tox
run: |
pip install tox tox-gh-actions coverage
tox
- name: Upload coverage
uses: codecov/codecov-action@v1.0.7
with:
name: Pytest coverage
env_vars: OS,PYTHON,GITHUB_ACTIONS,GITHUB_ACTION,GITHUB_REF,GITHUB_REPOSITORY,GITHUB_HEAD_REF,GITHUB_RUN_ID,GITHUB_SHA,COVERAGE_FILE
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
test_Packaging:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: install pypa/build
run: python -m pip install build --user
- name: build a binary wheel and source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Check Build
run: |
pip install twine
python -m twine check dist/*