Python integration test #20412
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python integration test | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '37 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.11] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
# - name: Cache Poetry virtualenv | |
# id: cache | |
# uses: actions/cache@v2 | |
# with: | |
# path: .venv | |
# key: venv-${{ runner.os }}-#{{ hashFiles('**/poetry.lock') }} | |
- name: install pip | |
run: poetry run python -m pip install --upgrade pip | |
- name: Install dependencies | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: poetry install --no-interaction --no-root | |
- name: Install | |
run: poetry install --no-interaction | |
- name: Integration test with pytest | |
working-directory: ./integration_tests | |
run: | | |
source ../.venv/bin/activate | |
pytest |