Open-Systems-Pharmacology / Workflows

Reusable workflows (e.g. GitHub Actions) which can be used in any OSP repository
1 stars 4 forks source link

add ability to provide codecov secret token from caller workflows #30

Closed Felixmil closed 5 months ago

Felixmil commented 5 months ago

Caller workflows can now pass secret codecov token to reusable code coverage workflow:

name: test-pkg-and-coverage

on:
  push:
    branches: [main, master, develop]
  pull_request:
    branches: [main, master, develop]
  workflow_dispatch:

jobs:
  test-pkg-and-coverage:
    uses: Open-Systems-Pharmacology/Workflows/.github/workflows/test-pkg-and-coverage.yml@main
    with:
      install-pksim: true
      install-rClr: true
      extra-packages: |
        ospsuite.utils=github::Open-Systems-Pharmacology/OSPSuite.RUtils
        tlf=github::Open-Systems-Pharmacology/TLF-Library
        ospsuite=github::Open-Systems-Pharmacology/OSPSuite-R
        ospsuite.parameteridentification=github::Open-Systems-Pharmacology/OSPSuite.ParameterIdentification
    secrets:
      CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN}}
PavelBal commented 5 months ago

@msevestre could you merge?

Felixmil commented 5 months ago

Proof it is working: https://github.com/esqLABS/esqlabsR/pull/650