Skip to content

Fixes for release 0.3.3 #1

Fixes for release 0.3.3

Fixes for release 0.3.3 #1

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: pip-install-3.11
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: '3.11'

Check failure on line 19 in .github/workflows/python-package-3.11.yml

View workflow run for this annotation

GitHub Actions / pip-install-3.11

Invalid workflow file

The workflow is not valid. .github/workflows/python-package-3.11.yml (Line: 19, Col: 25): Unexpected value '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: Display Python location
run: |
python_path=$(which python 2>&1)
echo "Python path: $python_path"
site_packages="Site packages path: $( cd "$(dirname "$(dirname "$python_path")")"/lib/python${{ matrix.python-version }}/site-packages ; pwd -P )"
echo $site_packages
- name: Cache dependencies
id: myCache
uses: actions/cache@v2
with:
path: ${{env.LD_LIBRARY_PATH}}/python${{ matrix.python-version }}/site-packages
key: ${{ runner.os }}-pip-v0-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
if: steps.myCache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Format the code with black
run: python -m black bcdi --check
- name: Check imports with isort
run: python -m isort --profile black bcdi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. Use the default of 88 chars
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
- name: Type check with mypy
run: python -m mypy bcdi
- name: Install the package
run: python -m pip install -e .
- name: Test with pytest
run: python -m pytest