diff --git a/.github/workflows/atest.yml b/.github/workflows/atest.yml new file mode 100644 index 0000000..b6bd522 --- /dev/null +++ b/.github/workflows/atest.yml @@ -0,0 +1,39 @@ +name: Acceptance tests + +on: + push: + branches: [master,debug] + pull_request: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.9.19, 3.10.14, 3.11.9, 3.12.4] + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@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 pip install --user pdm + pdm install + + - name: Start test environment + run: | + pdm testenv & + echo "Waiting for test server to become available..." + curl --retry 5 --retry-connrefused --retry-delay 3 http://localhost:8273 + + - name: Run acceptance tests + run: pdm atest diff --git a/.github/workflows/python-package.yml b/.github/workflows/build.yml similarity index 86% rename from .github/workflows/python-package.yml rename to .github/workflows/build.yml index 052a162..e5ae64d 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,8 @@ -name: Python package +name: Build packages on: push: - branches: [master] + branches: [master,debug] pull_request: branches: [master] @@ -15,15 +15,19 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --user pdm pdm install + - name: Recreate documentation run: pdm docs + - name: Build distributions run: pdm build diff --git a/.github/workflows/inactive.yml b/.github/workflows/inactive.yml index 4d02a47..19a6505 100644 --- a/.github/workflows/inactive.yml +++ b/.github/workflows/inactive.yml @@ -11,7 +11,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@v9 with: days-before-issue-stale: 30 days-before-issue-close: 14 diff --git a/.github/workflows/rf_tests.yml b/.github/workflows/rf_tests.yml deleted file mode 100644 index b8f8c0a..0000000 --- a/.github/workflows/rf_tests.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Robot Framework acceptance tests - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.9.19, 3.10.14, 3.11.9, 3.12.4] - - steps: - - uses: actions/checkout@v2 - - name: Setup Node.js - uses: actions/setup-node@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --user pdm - pdm install - - name: Start server - run: | - pdm testenv & - sleep 10 - - name: Run tests - run: pdm atest - - name: Generate Report - id: xunit-viewer - uses: AutoModality/action-xunit-viewer@v1 - with: - results: results - - name: Attach the report - if: always() - uses: actions/upload-artifact@v1 - with: - name: ${{ steps.xunit-viewer.outputs.report-name }} - path: ${{ steps.xunit-viewer.outputs.report-dir }}/index.html diff --git a/.github/workflows/unittests.yml b/.github/workflows/test.yml similarity index 62% rename from .github/workflows/unittests.yml rename to .github/workflows/test.yml index a692c38..21c6e12 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/test.yml @@ -1,11 +1,8 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Python Unit tests +name: Unit tests on: push: - branches: [master] + branches: [master,debug] pull_request: branches: [master] @@ -18,13 +15,16 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --user pdm pdm install + - name: Run unit tests run: pdm test