X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=.github%2Fworkflows%2Fengine_unit-test.yml;h=86120b0fba8a4115f087736cebed4fef912077f6;hb=ac56b1d1b46e28fd4296a21c17e725b069ed4aec;hp=7f1665a04566e84477de82bd93f6927b49420351;hpb=35f90af9096a0dad868107ea6dc005468badd5c3;p=kconfig-hardened-check.git diff --git a/.github/workflows/engine_unit-test.yml b/.github/workflows/engine_unit-test.yml index 7f1665a..86120b0 100644 --- a/.github/workflows/engine_unit-test.yml +++ b/.github/workflows/engine_unit-test.yml @@ -3,29 +3,29 @@ name: engine unit-test on: push: branches: [ master ] - pull_request: - branches: [ master ] jobs: engine_unit-test: + if: github.repository == 'a13xp0p0v/kernel-hardening-checker' + runs-on: ubuntu-latest strategy: max-parallel: 1 fail-fast: false matrix: - python-version: ['3.11'] + python-version: ['3.12'] steps: - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Get source code for collecting coverage - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install coverage run: | @@ -38,7 +38,9 @@ jobs: coverage xml -i -o coverage_unittest.xml - name: Handle coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: files: ./coverage_unittest.xml flags: engine_unit-test