Skip to content

Integration tests

Integration tests #6

name: "Integration tests"
on:
push:
branches: [ "master" ]
pull_request:
jobs:
IntegrationTests1:
runs-on: ubuntu-latest
name: Integration Tests all issues
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Integration test
id: generate_living_doc
uses: ./
env:
GITHUB-TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
liv-doc-regime: true
liv-doc-repositories: |
[
{
"organization-name": "AbsaOSS",
"repository-name": "living-doc-generator",
"query-labels": ["int-tests"],
"projects-title-filter": []
}
]
- name: Verify integration test results
run: pytest tests/integration/validate_outputs_test.py::test_validate_for_test1
IntegrationTests2:
runs-on: ubuntu-latest
name: Integration Tests in project
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Integration test
id: generate_living_doc
uses: ./
env:
GITHUB-TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
liv-doc-regime: true
liv-doc-repositories: |
[
{
"organization-name": "AbsaOSS",
"repository-name": "living-doc-generator",
"query-labels": ["int-tests"],
"projects-title-filter": ["integration-tests-for-living-doc-generator"]
}
]
liv-doc-project-state-mining: true
- name: Verify integration test results
run: pytest tests/integration/validate_outputs_test.py::test_validate_for_test2
IntegrationTests3:
runs-on: ubuntu-latest
name: Integration Tests bug label
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Integration test
id: generate_living_doc
uses: ./
env:
GITHUB-TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
liv-doc-regime: true
liv-doc-repositories: |
[
{
"organization-name": "AbsaOSS",
"repository-name": "living-doc-generator",
"query-labels": ["int-tests", "bug"],
"projects-title-filter": []
}
]
- name: Verify integration test results
run: pytest tests/integration/validate_outputs_test.py::test_validate_for_test3