Skip to content

Commit

Permalink
πŸš‡ Use pyglotaran-examples@staging_rewrite for CI integration tests (#…
Browse files Browse the repository at this point in the history
…1462)

With this change the integration tests used the examples ported to the staging syntax (see glotaran/pyglotaran-examples#101 and glotaran/pyglotaran-examples#102)

Change summary
πŸš‡ Use pyglotaran-examples@staging_rewrite for CI integration tests
  • Loading branch information
s-weigand authored Jun 2, 2024
1 parent bc5679a commit 4cd51f1
Showing 1 changed file with 60 additions and 12 deletions.
72 changes: 60 additions & 12 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
steps:
- name: Set example list output
id: create-example-list
uses: glotaran/pyglotaran-examples@main
uses: glotaran/pyglotaran-examples@staging_rewrite
with:
example_name: set example list
set_example_list: true
examples_branch: staging_rewrite

run-examples:
name: "Run Example: "
Expand All @@ -33,7 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install pyglotaran
Expand All @@ -43,29 +44,76 @@ jobs:
pip install .
- name: ${{ matrix.example_name }}
id: example-run
uses: glotaran/pyglotaran-examples@main
uses: glotaran/pyglotaran-examples@staging_rewrite
with:
example_name: ${{ matrix.example_name }}
examples_branch: staging_rewrite
- name: Installed packages
if: always()
run: |
pip freeze
- name: Upload Example Plots Artifact
uses: actions/upload-artifact@v3
- name: Upload Example Notebook Artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: example-plots
path: ${{ steps.example-run.outputs.plots-path }}
name: example-notebooks-${{ matrix.example_name }}
path: ${{ steps.example-run.outputs.notebook-path }}

- name: Upload Example Results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: example-results-${{ matrix.example_name }}
path: ~/pyglotaran_examples_results_staging

collect-artifacts:
if: always()
name: "Collect artifacts and reupload as bundel"
runs-on: ubuntu-latest
needs: [run-examples]
steps:
- name: Download Notebooks Artifacts
uses: actions/download-artifact@v4
with:
path: example-notebooks
pattern: example-notebooks-*
merge-multiple: true

- name: Upload Example Notebooks Artifact
uses: actions/upload-artifact@v4
with:
name: example-notebooks
path: example-notebooks
overwrite: true

- name: Delete Intermediate Notebooks artifacts
uses: GeekyEggo/delete-artifact@v5
with:
name: example-notebooks-*

- name: Download Result Artifacts
uses: actions/download-artifact@v4
with:
path: example-results
pattern: example-results-*
merge-multiple: true

- name: Upload Example Result Artifact
uses: actions/upload-artifact@v4
with:
name: example-results
path: ~/pyglotaran_examples_results
path: example-results
overwrite: true

- name: Delete Intermediate Result artifacts
uses: GeekyEggo/delete-artifact@v5
with:
name: example-results-*

compare-results:
name: Compare Results
runs-on: ubuntu-latest
needs: [run-examples]
needs: [collect-artifacts]
steps:
- name: Checkout compare results
uses: actions/checkout@v4
Expand All @@ -75,7 +123,7 @@ jobs:
path: comparison-results

- name: Download result artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: example-results
path: comparison-results-current
Expand All @@ -91,7 +139,7 @@ jobs:
echo "::endgroup::"
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

Expand Down

0 comments on commit 4cd51f1

Please sign in to comment.