Skip to content

Commit

Permalink
Merge pull request #8 from psrenergy/feature/codecov
Browse files Browse the repository at this point in the history
Add codecov
  • Loading branch information
raphasampaio authored Sep 21, 2024
2 parents 3211b4c + d8bcb57 commit cf162af
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 16 deletions.
43 changes: 29 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -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
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 }}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# PSRBridge.jl
# PSRBridge.jl

[![codecov](https://codecov.io/gh/psrenergy/PSRBridge.jl/graph/badge.svg?token=aGnfwPzg7t)](https://codecov.io/gh/psrenergy/PSRBridge.jl)
2 changes: 1 addition & 1 deletion test/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cf162af

Please sign in to comment.