diff --git a/.github/workflows/check_nexus_version.yml b/.github/workflows/check_nexus_version.yml new file mode 100644 index 000000000..6b89e30c3 --- /dev/null +++ b/.github/workflows/check_nexus_version.yml @@ -0,0 +1,24 @@ +name: nexus version check + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + linting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Generate nexus git version + run: | + git submodule sync --recursive + git submodule update --init --recursive --jobs=4 + git submodule foreach --recursive 'git fetch --tags' + cd pynxtools/definitions + git describe --dirty --tags --long --match "*[0-9]*" > ../nexus-ref.txt + cd ../ + - name: Diff + run: | + diff -w pynxtools/nexus-version.txt pynxtools/nexus-ref.txt \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3e47f6ad5..6d47622be 100644 --- a/.gitignore +++ b/.gitignore @@ -202,6 +202,7 @@ cython_debug/ !requirements.txt !dev-requirements.txt !mkdocs-requirements.txt +!pynxtools/nexus-version.txt build/ nexusparser.egg-info/PKG-INFO .python-version diff --git a/pynxtools/nexus-version.txt b/pynxtools/nexus-version.txt new file mode 100644 index 000000000..9c1048b1b --- /dev/null +++ b/pynxtools/nexus-version.txt @@ -0,0 +1 @@ +v2020.10-1452-gd2fdad4f \ No newline at end of file