Skip to content

Bump senzing-core from 0.3.14 to 0.3.15 #458

Bump senzing-core from 0.3.14 to 0.3.15

Bump senzing-core from 0.3.14 to 0.3.15 #458

Workflow file for this run

name: pytest windows
on:
pull_request:
branches: [main]
schedule:
- cron: "15 7 * * *"
workflow_dispatch:
env:
PYTHONPATH: ${{ github.workspace }}/src
SENZING_TOOLS_DATABASE_URL: 'sqlite3://na:na@nowhere/C:\Temp\sqlite\G2C.db'
permissions:
contents: read
jobs:
pytest-windows:
name: "pytest with Senzing: ${{ matrix.senzingsdk-version }}; OS: windows-latest; Python ${{ matrix.python-version }}"
outputs:
status: ${{ job.status }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
senzingsdk-version: [staging-v4]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m venv .\\venv
.\\venv\\Scripts\\activate
python -m pip install --upgrade pip
python -m pip install --requirement development-requirements.txt
python -m pip install --requirement requirements.txt
- if: matrix.python-version == '3.9' || matrix.python-version == '3.10'
name: Install python libraries for python 3.9 and 3.10
run: |
.\\venv\\Scripts\\activate
python -m pip install typing_extensions
- name: Install Senzing SDK
uses: senzing-factory/github-action-install-senzing-sdk@v3
with:
senzingsdk-repository-path: ${{ secrets.SENZING_WIN_BETA_REPOSITORY }}
- name: Add to "Path" environment variable
run: |
Add-Content "$env:GITHUB_PATH" "$Env:USERPROFILE\Senzing\er\lib"
- name: Copy /etc files
run: |
copy testdata/senzing-license/g2.lic "$Env:USERPROFILE\Senzing\er\etc\g2.lic"
- name: Copy test database files
run: |
mkdir "C:\Temp\sqlite"
copy testdata/sqlite/G2C.db "C:\Temp\sqlite\G2C.db"
- name: Run pytest
run: |
.\\venv\\Scripts\\activate
$Env:SENZING_PATH = "$Env:USERPROFILE\Senzing"
pytest tests/ --verbose --capture=no --cov=src
- name: Rename coverage file
env:
COVERAGE_FILE: "coverage.${{ matrix.python-version }}"
run: |
Rename-Item -Path.coverage -NewName "$env:COVERAGE_FILE"
- name: Store coverage file
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: coverage.${{ matrix.python-version }}
coverage:
name: Coverage
needs: pytest-windows
permissions:
pull-requests: write
contents: write
uses: senzing-factory/build-resources/.github/workflows/python-coverage-comment.yaml@v2
slack-notification:
needs: [pytest-windows]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.pytest-windows.outputs.status ) && github.event_name == 'schedule' }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2
with:
job-status: ${{ needs.pytest-windows.outputs.status }}