Canonize #62
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: "master" | |
| tags: ["*"] | |
| pull_request: | |
| release: | |
| jobs: | |
| test: | |
| name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }} - threads ${{ matrix.julia-threads }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| JULIA_NUM_THREADS: ${{ matrix.julia-threads }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| julia-version: | |
| - "1.0" | |
| - "1" | |
| - "nightly" | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| julia-arch: | |
| - x64 | |
| julia-threads: | |
| - "1" | |
| - "2" | |
| # Tests on Windows with Julia v1.0 crash when using multiple threads. | |
| # I don't think investigating why this failure on such an old version | |
| # of Julia is worth the effort | |
| exclude: | |
| - os: windows-latest | |
| julia-version: "1.0" | |
| julia-threads: "2" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.julia-version }} | |
| arch: ${{ matrix.julia-arch }} | |
| - uses: julia-actions/cache@v2 | |
| - uses: julia-actions/julia-buildpkg@latest | |
| - uses: julia-actions/julia-runtest@latest | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| - uses: codecov/codecov-action@v5 | |
| - uses: julia-actions/julia-uploadcoveralls@v1.0 | |
| continue-on-error: true | |
| astropy: | |
| name: Compare with Astropy | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: "1" | |
| arch: x64 | |
| - uses: julia-actions/cache@v2 | |
| with: | |
| cache-name: astropy | |
| - uses: julia-actions/julia-buildpkg@latest | |
| - name: Install PythonCall | |
| shell: julia --project=. --color=yes {0} | |
| run: | | |
| using Pkg | |
| Pkg.add(name="PythonCall", version="0.8") | |
| - name: Compare with Astropy | |
| shell: julia --project=. --color=yes {0} | |
| run: | | |
| using LombScargle | |
| include(joinpath(pkgdir(LombScargle), "test", "astropy.jl")) | |
| Documentation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: julia-actions/setup-julia@latest | |
| with: | |
| version: 1 | |
| - uses: julia-actions/cache@v2 | |
| with: | |
| cache-name: astropy | |
| - uses: julia-actions/julia-docdeploy@releases/v1 | |
| env: | |
| DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
| JULIA_GR_PROVIDER: BinaryBuilder |