CI (against releases) #992
This file contains hidden or 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
| name: CI (against releases) | |
| on: | |
| schedule: | |
| - cron: "0 3 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| # Test latest released version on PyPI against the workflow on the current main branch. | |
| # If main becomes incompatible with the latest version on PyPI then temporarily | |
| # comment out this test, and restore it on the next PyPI release. | |
| # Temporarily commented out since 24a25b1, because current dolfinx nightly uses | |
| # a namespaced target for dolfinx::dolfinx, while the previous multiphenicsx release | |
| # assumed a plain target named dolfinx | |
| # test_main_branch_against_latest_release_from_pypi: | |
| # uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@main | |
| # with: | |
| # ref: main | |
| # index: PyPI | |
| # Test released versions on github or PyPI against the workflow on the corresponding git tag. | |
| test_0_3_8_installing_from_github: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.3.8.post1 | |
| with: | |
| ref: v0.3.8.post1 | |
| test_0_3_8_installing_from_pypi_versioned: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.3.8.post1 | |
| with: | |
| ref: v0.3.8.post1 | |
| index: PyPI | |
| index_version: 0.3.8 | |
| expected_index_version: 0.3.8 | |
| test_0_3_8_installing_from_pypi_unversioned: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.3.8.post1 | |
| with: | |
| ref: v0.3.8.post1 | |
| index: PyPI | |
| expected_index_version: 0.3.8 | |
| test_0_3_9_installing_from_github: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.3.9.post3 | |
| with: | |
| ref: v0.3.9.post3 | |
| test_0_3_9_installing_from_pypi_versioned: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.3.9.post3 | |
| with: | |
| ref: v0.3.9.post3 | |
| index: PyPI | |
| index_version: 0.3.9 | |
| expected_index_version: 0.3.9 | |
| test_0_3_9_installing_from_pypi_unversioned: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.3.9.post3 | |
| with: | |
| ref: v0.3.9.post3 | |
| index: PyPI | |
| expected_index_version: 0.3.9 | |
| test_0_4_0_installing_from_github: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.4.0.post5 | |
| with: | |
| ref: v0.4.0.post5 | |
| test_0_4_0_installing_from_pypi_versioned: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.4.0.post5 | |
| with: | |
| ref: v0.4.0.post5 | |
| index: PyPI | |
| index_version: 0.4.0 | |
| expected_index_version: 0.4.0 | |
| test_0_4_0_installing_from_pypi_unversioned: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.4.0.post5 | |
| with: | |
| ref: v0.4.0.post5 | |
| index: PyPI | |
| expected_index_version: 0.4.0 | |
| test_0_4_1_installing_from_github: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.4.1.post0 | |
| with: | |
| ref: v0.4.1.post0 | |
| test_0_4_1_installing_from_pypi_versioned: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.4.1.post0 | |
| with: | |
| ref: v0.4.1.post0 | |
| index: PyPI | |
| index_version: 0.4.1 | |
| expected_index_version: 0.4.1 | |
| test_0_4_1_installing_from_pypi_unversioned: | |
| uses: multiphenics/multiphenicsx/.github/workflows/ci.yml@v0.4.1.post0 | |
| with: | |
| ref: v0.4.1.post0 | |
| index: PyPI | |
| expected_index_version: 0.4.1 | |
| warn: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'multiphenics/multiphenicsx' && github.ref == 'refs/heads/main' && github.event_name == 'schedule' | |
| steps: | |
| - name: Warn if scheduled workflow is about to be disabled | |
| uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@58c6022d9aeb22accfa8df9bf5b58c3d8867208c # v1.0.0 | |
| with: | |
| workflow-filename: ci_against_releases.yml | |
| days-elapsed: 55 |