diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index de79fecf..c6137703 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -1,6 +1,7 @@ name: Nightly Build on: + workflow_dispatch: schedule: - cron: "00 00 * * *" @@ -10,16 +11,29 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Checkout latest tag + run: | + echo checking out $(git describe --tags) + git checkout $(git describe --tags) - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.x' - - name: Set up environment + - name: Remove necessary directories run: | rm -rf PyPDFForm + rm -rf pdf_samples + - name: Re-checkout latest samples + uses: actions/checkout@v4 + with: + sparse-checkout: | + pdf_samples + - name: Set up environment + run: | python -m pip install --upgrade pip pip install PyPDFForm pip install -r requirements.txt + ls - name: Run nightly tests run: | pytest