diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index e41a1cb..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: CI - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - matrix: - julia-version: ['1.8', '1.10', 'nightly'] - os: [ubuntu-latest, windows-latest, macOS-latest] - include: - - julia-version: '1.10' - os: ubuntu-latest - coverage: true - exclude: - - julia-version: 'nightly' - os: windows-latest - - julia-version: 'nightly' - os: macOS-latest - steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 - with: - version: ${{ matrix.julia-version }} - - name: Install dependencies - run: julia --project -e 'using Pkg; Pkg.instantiate()' - - name: Run tests - run: julia --project -e 'using Pkg; Pkg.test()' - - name: Upload coverage - if: matrix.coverage - uses: julia-actions/julia-uploadcodecov@v1 \ No newline at end of file diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index cdf181a..1eea384 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -14,8 +14,8 @@ jobs: statuses: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v2 with: version: '1.10' - name: Install dependencies @@ -30,7 +30,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} - - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/runtest.yml b/.github/workflows/runtest.yml new file mode 100644 index 0000000..204a55e --- /dev/null +++ b/.github/workflows/runtest.yml @@ -0,0 +1,37 @@ +name: Run tests + +on: + push: + branches: + - master + - main + pull_request: + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: ['1.8', '1.10', 'nightly'] + julia-arch: [x64, x86] + os: [ubuntu-latest, windows-latest, macOS-latest] + exclude: + - os: macOS-latest + julia-arch: x86 + + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - uses: julia-actions/cache@v1.5 + - uses: julia-actions/julia-buildpkg@v1.5 + - uses: julia-actions/julia-runtest@v1.9 + # with: + # annotate: true \ No newline at end of file