Update CI for individual package testing combinations #3
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: MRIBase | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - 'MRIBase/**' | |
| push: | |
| branches: | |
| - master | |
| - '*' | |
| tags: '*' | |
| paths: | |
| - 'MRIBase/**' | |
| jobs: | |
| test: | |
| name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: | |
| - '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia. | |
| - '1.10' #LTS | |
| #- 'nightly' | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| arch: | |
| - x64 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: julia-actions/setup-julia@v1 | |
| with: | |
| version: ${{ matrix.version }} | |
| arch: ${{ matrix.arch }} | |
| - uses: actions/cache@v3 | |
| 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 }}- | |
| - name: Install MRIBase | |
| shell: julia --color=yes --project=. {0} | |
| run: | | |
| using Pkg | |
| Pkg.develop([PackageSpec(path=pwd(), subdir="MRIBase")]) | |
| - uses: julia-actions/julia-buildpkg@v1 | |
| - name: Run MRIBase tests | |
| shell: julia --color=yes --project=. {0} | |
| run: | | |
| using Pkg | |
| Pkg.test("MRIBase") | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| with: | |
| directories: MRIBase/src | |
| - uses: codecov/codecov-action@v4.4.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |