# Tests fail for Julia 1.11 on GitHub

**URL:** <https://discourse.julialang.org/t/tests-fail-for-julia-1-11-on-github/121823>\
**Category:** General Usage\
**Tags:** question, github-actions\
**Created:** [October 27, 2024, 1:50pm UTC](https://discourse.julialang.org/t/tests-fail-for-julia-1-11-on-github/121823 "2024-10-27T13:50:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 27, 2024, 1:50pm UTC](https://discourse.julialang.org/t/tests-fail-for-julia-1-11-on-github/121823/1 "2024-10-27T13:50:31Z")

</div>

My tests pass for Julia 1.10: [Adapt to new KiteModels, using new conventions · aenarete/KiteControllers.jl@dd84a3f · GitHub](https://github.com/aenarete/KiteControllers.jl/actions/runs/11540890813/job/32122247240?pr=39) and fail for Julia 1.11:

> <https://github.com/aenarete/KiteControllers.jl/actions/runs/11540890813/job/32122247336?pr=39>

I do not really understand why. This might be related to my use of PyPlot, which works for Julia 1.10 but not for Julia 1.11.

I tried to convince Julia to use the pre-installed version of Python and Matplotlib using the step:

```julia
      - name: Install matplotlib
        run: if ["$RUNNER_OS" = "Linux"]; then sudo apt-get install -y python3-matplotlib; export PYTHON=$PYTHON_PATH; fi
        shell: bash

```

but perhaps that is not compatible with:

```julia
    steps:
      - name: Install matplotlib
        run: if ["$RUNNER_OS" = "Linux"]; then sudo apt-get install -y python3-matplotlib; export PYTHON=$PYTHON_PATH; fi
        shell: bash
      - uses: actions/checkout@v4
      - uses: julia-actions/setup-julia@v2
        with:
          version: ${{ matrix.version }}
          arch: ${{ matrix.arch }}
      - uses: julia-actions/cache@v2
      - uses: actions/cache@v4
        env:
          cache-name: cache-artifacts
        with:
          path: ~/.julia/artifacts
          key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
          restore-keys: |
            ${{ runner.os }}-test-${{ env.cache-name }}-
            ${{ runner.os }}-test-
            ${{ runner.os }}-
      - uses: julia-actions/julia-buildpkg@v1
      - uses: julia-actions/julia-runtest@v1
      - uses: julia-actions/julia-processcoverage@v1
      - uses: codecov/codecov-action@v4

```

Any idea?

Locally the tests pass, both for Julia 1.10 and Julia 1.11.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 27, 2024, 3:49pm UTC](https://discourse.julialang.org/t/tests-fail-for-julia-1-11-on-github/121823/2 "2024-10-27T15:49:16Z")

</div>

OK, I changed my CI.yml so that PyPlot is no longer an issue. But still, on Julia 1.10 it says:

```julia
 Testing Precompilation of test environment failed. Continuing to tests

```

But on Julia 1.11 it just terminates and does not run the tests. Why?

New build job: [add file to .gitignore · aenarete/KiteControllers.jl@71ccd6d · GitHub](https://github.com/aenarete/KiteControllers.jl/actions/runs/11541687576/job/32123978848)
