From 4147ec31b60a497ccb6a49c03d2ebd0146d5e34b Mon Sep 17 00:00:00 2001 From: Haochen Pan <32943456+haochenpan@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:35:44 -0600 Subject: [PATCH 1/2] Create daily-tox.yml --- .github/workflows/daily-tox.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/daily-tox.yml diff --git a/.github/workflows/daily-tox.yml b/.github/workflows/daily-tox.yml new file mode 100644 index 0000000..d5d9b85 --- /dev/null +++ b/.github/workflows/daily-tox.yml @@ -0,0 +1,24 @@ +name: Daily Tox Test + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + tox-test: + runs-on: ubuntu-latest # or any other OS + + strategy: + matrix: + python-version: [3.9, 3.11] # Adjust Python versions as needed + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - run: python -m pip install -U pip setuptools + - run: python -m pip install tox pytest + - name: Run tox + run: tox From 2d42a48cb7b7da91a8a58a925b1f8963bd8c88d1 Mon Sep 17 00:00:00 2001 From: Haochen Pan <32943456+haochenpan@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:39:30 -0600 Subject: [PATCH 2/2] Update daily-tox.yml --- .github/workflows/daily-tox.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/daily-tox.yml b/.github/workflows/daily-tox.yml index d5d9b85..b24bf9b 100644 --- a/.github/workflows/daily-tox.yml +++ b/.github/workflows/daily-tox.yml @@ -2,7 +2,8 @@ name: Daily Tox Test on: schedule: - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Runs at midnight every day + workflow_dispatch: # This allows manual triggering jobs: tox-test: