Skip to content

Fix deployment

Fix deployment #68

name: Continuous Integration
on:
push:
branches:
- master
paths-ignore:
- "docs/**"
- "*.ini"
- "*.md"
- "**/*.txt"
- ".gitignore"
- ".gitmodules"
- ".gitattributes"
- ".editorconfig"
pull_request:
branches:
- master
paths-ignore:
- "docs/**"
- "*.ini"
- "*.md"
- "**/*.txt"
- ".gitignore"
- ".gitmodules"
- ".gitattributes"
- ".editorconfig"
jobs:
build:
name: ${{matrix.os}} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
# python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
# os: [MacOS, Ubuntu, Windows]
# architecture: [x64, x86]
python-version: [3.7, 3.8, 3.9]
os: [MacOS, Ubuntu, Windows]
architecture: [x64]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Get python path
id: python-path
run: |
echo ::set-output name=path::$(python -c "import sys; print(sys.executable)")
- name: Install latest pip, setuptools, wheel
run: |
python -m pip install --upgrade pip setuptools wheel pipenv --upgrade-strategy=eager
- name: Install
env:
PIPENV_DEFAULT_PYTHON_VERSION: ${{ matrix.python-version }}
PYTHONWARNINGS: ignore:DEPRECATION
PYTHONIOENCODING: "utf-8"
GIT_ASK_YESNO: "false"
run: |
git submodule sync
git submodule update --init --recursive
python -m pip install -e . --upgrade
pipenv install --deploy --dev --python=${{ steps.python-path.outputs.path }}
- name: Run tests
env:
PIPENV_DEFAULT_PYTHON_VERSION: ${{ matrix.python-version }}
PYTHONWARNINGS: ignore:DEPRECATION
PIPENV_NOSPIN: "1"
CI: "1"
GIT_ASK_YESNO: "false"
PYPI_VENDOR_DIR: "./tests/pypi/"
PYTHONIOENCODING: "utf-8"
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=accept-new -o CheckHostIP=no
run: |
pipenv run pytest