diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f77b8a39..7e11cefa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,7 @@ name: test on: pull_request: - branches: - -master - -dev + branches: [ master, dev ] workflow_dispatch: jobs: @@ -45,7 +43,7 @@ jobs: set -e for cgf_file in ./sample_cgfs/*.cgf; do if [ "$cgf_file" != "./sample_cgfs/dataset.cgf" ]; then - if [[ "$cgf_file" != *rv32e* ]] && [[ "cgf_file" == *rv32* ]] && [ "${{matrix.architecture}}" == "rv32i" ] ; then + if [[ "$cgf_file" != *rv32e* ]] && [[ "$cgf_file" == *rv32* ]] && [ "${{matrix.architecture}}" == "rv32i" ] ; then cmd="riscv_ctg -r -d ./tests -bi rv32i -cf sample_cgfs/dataset.cgf -cf \"$cgf_file\" -v warning -p \$(nproc)" echo $cmd eval $cmd || { echo "Error executing command: $cmd"; exit 1; } @@ -82,11 +80,14 @@ jobs: done check-version: - if: github.ref == 'refs/heads/master' + if: github.event.pull_request.base.ref == 'master' && github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions-ecosystem/action-get-latest-tag@v1 + id: get-latest-tag + - name: version check run: | export CHNGVER=$(grep -P -o '(?<=## \[).*(?=\])' -m1 CHANGELOG.md); diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e13d0f7..a208451c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ Please note the header `WIP-DEV` is to always remain indicating the changes done Only when a release to the main branch is done, the contents of the WIP-DEV are put under a versioned header while the `WIP-DEV` is left empty +## [0.12.1] - 2024-02-27 +- Fix test.yml + ## [0.12.0] - 2024-02-22 - Update generator.py to take care of hard coded register testcases only if a hard coded register is assigned in the op_comb node of a coverpoint of an instruction. - Add hardcoded register testcases to dataset.cgf and rv32im.cgf diff --git a/riscv_ctg/__init__.py b/riscv_ctg/__init__.py index 1d96eb63..2862388f 100644 --- a/riscv_ctg/__init__.py +++ b/riscv_ctg/__init__.py @@ -4,4 +4,4 @@ __author__ = """InCore Semiconductors Pvt Ltd""" __email__ = 'incorebot@gmail.com' -__version__ = '0.12.0' +__version__ = '0.12.1' diff --git a/setup.cfg b/setup.cfg index 0c3d811e..7b408594 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.12.0 +current_version = 0.12.1 commit = True tag = True