HDXDSYS-1692 fix admin2 ref logic, fix case when resource is deleted in operational presence, read admin 3 rows into operational presence #1358
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, lint and run tests | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Run tests | |
on: | |
workflow_dispatch: # add run button in github | |
push: | |
branches-ignore: | |
- gh-pages | |
- 'dependabot/**' | |
pull_request: | |
branches-ignore: | |
- gh-pages | |
schedule: | |
- cron: "2 21 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:14-alpine | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: hapitest | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
--name postgres-container | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install Hatch | |
uses: pypa/hatch@install | |
- name: Test with hatch/pytest | |
run: | | |
hatch test | |
- name: Check styling | |
if: always() | |
run: | | |
hatch fmt --check | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
junit_files: test-results.xml | |
- name: Publish in Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
flag-name: tests | |
format: lcov |