Skip to content

Merge pull request #173 from UCL-CCS/expval #436

Merge pull request #173 from UCL-CCS/expval

Merge pull request #173 from UCL-CCS/expval #436

Workflow file for this run

name: Continuous_Integration
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10"]
os: [ ubuntu-latest, macos-latest, windows-latest]
# # python: [ "3.7", "3.8", "3.9", "3.10", '3.11'] TODO: add more python versions
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# print the current Python version
- name: Display Python version and system OS
run: python -c "import sys; import platform; print(sys.version, platform.system())"
- name: Pip install package
run: |
python -m pip install --upgrade pip
pip install .
- name: Poetry install package
run: |
# poetry 1.4.1 has problems with debugpy for some reason.
pip install poetry #==1.4.0
poetry install
- name: Linting
run: |
poetry run pydocstyle --convention=google
poetry run isort . --check
poetry run black . --check
poetry run flake8 . --ignore E501,F401,W503 --count
continue-on-error: True
- name: Testing
run: |
poetry run pytest