diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f5140da..ad3d50e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,27 +1,42 @@ name: CI on: push: - branches: [master] + branches: + - master + tags: ['*'] pull_request: - types: [opened, synchronize, reopened] + workflow_dispatch: concurrency: # Skip intermediate builds: always. # Cancel intermediate builds: only if it is a pull request build. group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: - test-windows: - name: Test Windows - runs-on: self-hosted + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.9' + - '1.10' + os: + - ubuntu-latest + - windows-latest + arch: + - x64 steps: - - name: Initialize instance - run: | - Remove-Item -Path '${{ github.workspace }}\*' -Force -Recurse - - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: - fetch-depth: 0 - - - name: Test - run: | - .\test\test.bat \ No newline at end of file + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v4 + with: + files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index a0df3ae..76b91e7 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# PSRBridge.jl \ No newline at end of file +# PSRBridge.jl + +[![codecov](https://codecov.io/gh/psrenergy/PSRBridge.jl/graph/badge.svg?token=aGnfwPzg7t)](https://codecov.io/gh/psrenergy/PSRBridge.jl) \ No newline at end of file diff --git a/test/build.jl b/test/build.jl index 03cdee6..53c5a0d 100644 --- a/test/build.jl +++ b/test/build.jl @@ -109,7 +109,7 @@ function build_database(path::AbstractString) PSRI.link_series_to_file( db, "HydroPlant"; - time_series_file = build_thermal_plant_file(), + time_series_file = build_hydro_plant_file(), ) PSRDatabaseSQLite.close!(db)