diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index e710c0f4..0ef2c397 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -357,3 +357,28 @@ jobs: python -VV python -c "import sys; sys.exit('Invalid python version') if '.'.join(map(str,sys.version_info[0:2])) != '${{ matrix.python_version }}' else True" python setup.py ${{ matrix.py_setuptools_cmd || 'test'}} + + archive_build: + name: Build and test from archive + runs-on: 'ubuntu-latest' + defaults: + run: + shell: bash + steps: + + - name: Checkout the source + uses: actions/checkout@v3 + with: + submodules: false + fetch-depth: 1 + + - name: Archive + run: | + git archive HEAD -o archive.tgz + + - name: Extract + run: | + mkdir archive + cd archive + tar xvzf ../archive.tgz + ls