diff --git a/.github/workflows/run_periodic_tests.yml b/.github/workflows/run_periodic_tests.yml index d00ee92fa4..a571bbddb4 100644 --- a/.github/workflows/run_periodic_tests.yml +++ b/.github/workflows/run_periodic_tests.yml @@ -1,13 +1,7 @@ -# Run all unit tests and integration tests for all Python versions -# and platforms at 3am UTC every day and on PRs to the main branch name: Scheduled on: workflow_dispatch: - pull_request: - branches: - - main - # Run every day at 3 am UTC schedule: - cron: "0 3 * * *" @@ -27,7 +21,7 @@ concurrency: cancel-in-progress: true jobs: - run_tests: + run_unit_integration_and_coverage_tests: runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -44,7 +38,8 @@ jobs: if: matrix.os == 'ubuntu-latest' run: | sudo apt-get update - sudo apt-get install gfortran gcc graphviz pandoc libopenblas-dev texlive-latex-extra dvipng + sudo dot -c + sudo apt-get install libopenblas-dev texlive-latex-extra dvipng - name: Install macOS system dependencies if: matrix.os == 'macos-13' || matrix.os == 'macos-14' @@ -100,6 +95,8 @@ jobs: # Skips IDAKLU module compilation for speedups, which is already tested in other jobs. run_doctests: runs-on: ubuntu-latest + strategy: + fail-fast: false name: Doctests (ubuntu-latest / Python 3.11) steps: @@ -111,7 +108,7 @@ jobs: - name: Install Linux system dependencies run: | sudo apt-get update - sudo apt-get install graphviz pandoc texlive-latex-extra dvipng + sudo apt-get install texlive-latex-extra dvipng - name: Set up Python uses: actions/setup-python@v5 @@ -132,6 +129,8 @@ jobs: run_example_tests: runs-on: ubuntu-latest + strategy: + fail-fast: false name: Example notebooks (ubuntu-latest / Python 3.12) steps: @@ -141,7 +140,7 @@ jobs: - name: Install Linux system dependencies run: | sudo apt-get update - sudo apt-get install gfortran gcc graphviz pandoc libopenblas-dev texlive-latex-extra dvipng + sudo apt-get install libopenblas-dev texlive-latex-extra dvipng - name: Set up Python 3.12 uses: actions/setup-python@v5 @@ -163,6 +162,8 @@ jobs: run_scripts_tests: runs-on: ubuntu-latest + strategy: + fail-fast: false name: Example scripts (ubuntu-latest / Python 3.12) steps: @@ -172,7 +173,7 @@ jobs: - name: Install Linux system dependencies run: | sudo apt-get update - sudo apt install gfortran gcc graphviz libopenblas-dev texlive-latex-extra dvipng + sudo apt-get install libopenblas-dev texlive-latex-extra dvipng - name: Set up Python 3.12 uses: actions/setup-python@v5 diff --git a/.github/workflows/update_version.yml b/.github/workflows/update_version.yml deleted file mode 100644 index 899667d2de..0000000000 --- a/.github/workflows/update_version.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Update version - -on: - schedule: - # Run at 10 am UTC on day-of-month 1 in January, May, and September. - - cron: "0 10 1 1,5,9 *" - -jobs: - update-version: - # This workflow is only of value to PyBaMM and would always be skipped in forks - if: github.repository_owner == 'pybamm-team' - runs-on: ubuntu-latest - - steps: - - name: Get current date for the first release candidate - run: | - echo "VERSION=$(date +'v%y.%-m').0" >> $GITHUB_ENV - - - uses: actions/checkout@v4 - with: - ref: 'develop' - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - - name: Install dependencies - run: | - pip install -e ".[all]" - - # Update all the version strings and add CHANGELOG headings - - name: Update version - run: python scripts/update_version.py - - # Create a new version branch for the release and commit - - uses: EndBug/add-and-commit@v9 - with: - message: 'Bump to ${{ env.VERSION }}' - new_branch: '${{ env.VERSION }}' - - # Create a PR from version branch to main - - name: Make a PR from ${{ env.VERSION }} to main - id: release_pr - uses: repo-sync/pull-request@v2 - with: - source_branch: '${{ env.VERSION }}' - destination_branch: "main" - pr_title: "Make release ${{ env.VERSION }}" - pr_body: "**Check the [release workflow](https://github.com/pybamm-team/PyBaMM/blob/develop/.github/release_workflow.md)**" - github_token: ${{ secrets.GITHUB_TOKEN }}