From 3964ff3b50d3a4c8aa02120667d90662a99ef1f0 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:17:28 -0800 Subject: [PATCH 01/62] testing demo workflow --- .github/workflows/github-actions-demo.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 000000000..15a61d6b6 --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From e67403212e90d840932bd66c1c64a023c9af0556 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:11:36 -0800 Subject: [PATCH 02/62] test --- .github/workflows/python-test.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/python-test.yml diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml new file mode 100644 index 000000000..a93e27eaa --- /dev/null +++ b/.github/workflows/python-test.yml @@ -0,0 +1,32 @@ +# This workflow will install Python dependencies and run tests with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python test + +on: + push: + branches: [ "trunk" ] + pull_request: + branches: [ "trunk" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + python-version: '3.x' + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test + run: | + python3 rtest.py \ No newline at end of file From c684fe7f74e36ab619fde59ea431afcdf347cc94 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:13:30 -0800 Subject: [PATCH 03/62] temp change to all push --- .github/workflows/python-test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index a93e27eaa..d379f512b 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -3,11 +3,11 @@ name: Python test -on: - push: - branches: [ "trunk" ] - pull_request: - branches: [ "trunk" ] +on: [push] + # push: + # branches: [ "trunk" ] + # pull_request: + # branches: [ "trunk" ] permissions: contents: read From 09c4dafbc6044af3a5c763cf88e858571bc1e2e0 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:17:57 -0800 Subject: [PATCH 04/62] python 3.9 --- .github/workflows/python-test.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index d379f512b..276faef64 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -4,8 +4,6 @@ name: Python test on: [push] - # push: - # branches: [ "trunk" ] # pull_request: # branches: [ "trunk" ] @@ -18,11 +16,11 @@ jobs: steps: - uses: actions/checkout@v4 with: - python-version: '3.x' + python-version: '3.9' - name: Set up Python 3.10 uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: "3.9" - name: Install dependencies run: | python -m pip install --upgrade pip From 4994a26866ba3c7afef59c37ffdb765a89883715 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:43:28 -0800 Subject: [PATCH 05/62] versioning --- .github/workflows/python-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 276faef64..06c1ab907 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -25,6 +25,13 @@ jobs: run: | python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: List versions of things + run: | + python --version + delphin --version + where python + where delphin + where ace - name: Test run: | python3 rtest.py \ No newline at end of file From 5a91a3891402598cf46ddf7b493cb0ead1ed0777 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:44:12 -0800 Subject: [PATCH 06/62] versioning command which --- .github/workflows/python-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 06c1ab907..35ed9601a 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -29,9 +29,9 @@ jobs: run: | python --version delphin --version - where python - where delphin - where ace + which python + which delphin + which ace - name: Test run: | python3 rtest.py \ No newline at end of file From 7a141dc68ff0ceed7b97eee3227fb2e2b00d7818 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:06:09 -0800 Subject: [PATCH 07/62] versioning command remove ace --- .github/workflows/python-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 35ed9601a..fe677477d 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -31,7 +31,6 @@ jobs: delphin --version which python which delphin - which ace - name: Test run: | python3 rtest.py \ No newline at end of file From fd3a08c5a9ec986c51272e602abfe1cf8957dd28 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:24:28 -0800 Subject: [PATCH 08/62] adding path echo --- .github/workflows/python-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index fe677477d..69623785b 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -31,6 +31,7 @@ jobs: delphin --version which python which delphin + echo $PATH - name: Test run: | python3 rtest.py \ No newline at end of file From e6816863679abcb93eabf2c39197ea258b564a86 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:32:41 -0800 Subject: [PATCH 09/62] install ace --- .github/workflows/python-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 69623785b..dea82778e 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -25,6 +25,7 @@ jobs: run: | python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install ace - name: List versions of things run: | python --version From 702fcb5b0b37db5883821d35a576d010eb372ce8 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:35:01 -0800 Subject: [PATCH 10/62] which ace ' --- .github/workflows/python-test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index dea82778e..c20ae490f 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -32,7 +32,10 @@ jobs: delphin --version which python which delphin + echo MADE IT HERE + which ace + echo MADE IT HERE 2 echo $PATH - name: Test run: | - python3 rtest.py \ No newline at end of file + python3 rtest.py Cree \ No newline at end of file From e8bd8c175eb215d73993b664e588256ed432f34c Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:44:23 -0800 Subject: [PATCH 11/62] trying upload-artifact --- .github/workflows/python-test.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index c20ae490f..85ea96df0 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -33,9 +33,12 @@ jobs: which python which delphin echo MADE IT HERE - which ace - echo MADE IT HERE 2 echo $PATH - name: Test run: | - python3 rtest.py Cree \ No newline at end of file + python3 rtest.py Cree + - name: Upload test logs as artifact + uses: actions/upload-artifact@v3 + with: + name: test-logs + path: /home/runner/test_logs/*.log \ No newline at end of file From bcb7027f114e842bbf34b29f6679c4ad29b1c484 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:50:29 -0800 Subject: [PATCH 12/62] continue-on-error --- .github/workflows/python-test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 85ea96df0..78304d07a 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -34,9 +34,15 @@ jobs: which delphin echo MADE IT HERE echo $PATH + test: + continue-on-error: true + steps: - name: Test run: | python3 rtest.py Cree + logs: + needs: [test] + steps: - name: Upload test logs as artifact uses: actions/upload-artifact@v3 with: From 75468a38b240ff7882aa1c8c8977e2f6fad60469 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:51:23 -0800 Subject: [PATCH 13/62] runs-on --- .github/workflows/python-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 78304d07a..939407df8 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -35,6 +35,7 @@ jobs: echo MADE IT HERE echo $PATH test: + runs-on: ubuntu-latest continue-on-error: true steps: - name: Test From 4ba2ce92274972ecee57668d5af82b783cd50b3d Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:51:57 -0800 Subject: [PATCH 14/62] runs-on --- .github/workflows/python-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 939407df8..04dc0dc8c 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -42,6 +42,7 @@ jobs: run: | python3 rtest.py Cree logs: + runs-on: ubuntu-latest needs: [test] steps: - name: Upload test logs as artifact From d1eedcd911310bd6fcdcc3489e4b65d2c581e964 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:52:59 -0800 Subject: [PATCH 15/62] test needs build --- .github/workflows/python-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 04dc0dc8c..0145713af 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -35,6 +35,7 @@ jobs: echo MADE IT HERE echo $PATH test: + needs: [build] runs-on: ubuntu-latest continue-on-error: true steps: From 14a62ea81dedb5407cf659bd635f725170ba4731 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:08:54 -0800 Subject: [PATCH 16/62] test in build --- .github/workflows/python-test.yml | 6 +--- .github/workflows/python-test0.yml | 53 ++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/python-test0.yml diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 0145713af..6ee8ecdc2 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -12,6 +12,7 @@ permissions: jobs: build: + continue-on-error: true runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -34,11 +35,6 @@ jobs: which delphin echo MADE IT HERE echo $PATH - test: - needs: [build] - runs-on: ubuntu-latest - continue-on-error: true - steps: - name: Test run: | python3 rtest.py Cree diff --git a/.github/workflows/python-test0.yml b/.github/workflows/python-test0.yml new file mode 100644 index 000000000..0145713af --- /dev/null +++ b/.github/workflows/python-test0.yml @@ -0,0 +1,53 @@ +# This workflow will install Python dependencies and run tests with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python test + +on: [push] + # pull_request: + # branches: [ "trunk" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + python-version: '3.9' + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.9" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install ace + - name: List versions of things + run: | + python --version + delphin --version + which python + which delphin + echo MADE IT HERE + echo $PATH + test: + needs: [build] + runs-on: ubuntu-latest + continue-on-error: true + steps: + - name: Test + run: | + python3 rtest.py Cree + logs: + runs-on: ubuntu-latest + needs: [test] + steps: + - name: Upload test logs as artifact + uses: actions/upload-artifact@v3 + with: + name: test-logs + path: /home/runner/test_logs/*.log \ No newline at end of file From 8edede5e85d3a5606a611ec677a533307da73b92 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:09:40 -0800 Subject: [PATCH 17/62] depends on build --- .github/workflows/python-test.yml | 2 +- .github/workflows/{python-test0.yml => python-test0.txt} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{python-test0.yml => python-test0.txt} (100%) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 6ee8ecdc2..b77010040 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -40,7 +40,7 @@ jobs: python3 rtest.py Cree logs: runs-on: ubuntu-latest - needs: [test] + needs: [build] steps: - name: Upload test logs as artifact uses: actions/upload-artifact@v3 diff --git a/.github/workflows/python-test0.yml b/.github/workflows/python-test0.txt similarity index 100% rename from .github/workflows/python-test0.yml rename to .github/workflows/python-test0.txt From a2bdbe7d2a0a7d196cbaf16dfff8341776006629 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:24:46 -0800 Subject: [PATCH 18/62] changing pathname --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index b77010040..3528e2d02 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -46,4 +46,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: test-logs - path: /home/runner/test_logs/*.log \ No newline at end of file + path: /home/runner/work/matrix/matrix/tests/regression/logs/* \ No newline at end of file From cebb2d739b86e1714c1a96a98f2a81a0d585756d Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:05:43 -0800 Subject: [PATCH 19/62] download artifact --- .github/workflows/python-test.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 3528e2d02..0744d2c6c 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -11,7 +11,7 @@ permissions: contents: read jobs: - build: + build-and-test: continue-on-error: true runs-on: ubuntu-latest steps: @@ -38,12 +38,19 @@ jobs: - name: Test run: | python3 rtest.py Cree + - name: Upload test logs as artifact + uses: actions/upload-artifact@v3 + with: + name: test-logs + path: /home/runner/work/matrix/matrix/tests/regression/logs/* logs: runs-on: ubuntu-latest - needs: [build] + needs: [build-and-test] steps: - - name: Upload test logs as artifact - uses: actions/upload-artifact@v3 + - name: Download test logs from previous job + uses: actions/download-artifact@v3 with: name: test-logs - path: /home/runner/work/matrix/matrix/tests/regression/logs/* \ No newline at end of file + - name: View the test logs + run: | + ls -l work/matrix/matrix/tests/regression/logs/* \ No newline at end of file From 584bfa8d5108aceab23264369c2485413400508a Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:17:11 -0800 Subject: [PATCH 20/62] trying if command --- .github/workflows/python-test.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 0744d2c6c..b7f091c88 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -38,19 +38,27 @@ jobs: - name: Test run: | python3 rtest.py Cree + continue-on-error: true - name: Upload test logs as artifact + if: always() uses: actions/upload-artifact@v3 with: name: test-logs path: /home/runner/work/matrix/matrix/tests/regression/logs/* - logs: - runs-on: ubuntu-latest - needs: [build-and-test] - steps: - - name: Download test logs from previous job - uses: actions/download-artifact@v3 - with: - name: test-logs - - name: View the test logs + - name: Fail the job if the tests failed + if: failure() run: | - ls -l work/matrix/matrix/tests/regression/logs/* \ No newline at end of file + echo "Tests failed. Check logs for details." + exit 1 + + # logs: + # runs-on: ubuntu-latest + # needs: [build-and-test] + # steps: + # - name: Download test logs from previous job + # uses: actions/download-artifact@v3 + # with: + # name: test-logs + # - name: View the test logs + # run: | + # ls -l work/matrix/matrix/tests/regression/logs/* \ No newline at end of file From 0aae6e83c60d5d45ed63b589d77b603ccfbf509d Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:19:21 -0800 Subject: [PATCH 21/62] trying again --- .github/workflows/python-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index b7f091c88..f91a983c6 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -12,7 +12,6 @@ permissions: jobs: build-and-test: - continue-on-error: true runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From b35e2e06060b2555d5543d4104e260d2bd405be5 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:22:39 -0800 Subject: [PATCH 22/62] adding exit failute check: --- .github/workflows/python-test.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index f91a983c6..1c3cccc80 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -35,6 +35,7 @@ jobs: echo MADE IT HERE echo $PATH - name: Test + id: run-tests run: | python3 rtest.py Cree continue-on-error: true @@ -45,10 +46,12 @@ jobs: name: test-logs path: /home/runner/work/matrix/matrix/tests/regression/logs/* - name: Fail the job if the tests failed - if: failure() + if: always() run: | - echo "Tests failed. Check logs for details." - exit 1 + if [ ${{ steps.run-tests.outcome }} != 'success' ]; then + echo "Tests failed. Check logs for details." + exit 1 + fi # logs: # runs-on: ubuntu-latest From 479188c55f3a3c30d06ad74e764837a06894c3a3 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 12:02:46 -0800 Subject: [PATCH 23/62] trying more than one test --- .github/workflows/python-test.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 1c3cccc80..1506619dd 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -37,11 +37,11 @@ jobs: - name: Test id: run-tests run: | - python3 rtest.py Cree + python3 rtest.py wh-* continue-on-error: true - name: Upload test logs as artifact if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-logs path: /home/runner/work/matrix/matrix/tests/regression/logs/* @@ -51,16 +51,4 @@ jobs: if [ ${{ steps.run-tests.outcome }} != 'success' ]; then echo "Tests failed. Check logs for details." exit 1 - fi - - # logs: - # runs-on: ubuntu-latest - # needs: [build-and-test] - # steps: - # - name: Download test logs from previous job - # uses: actions/download-artifact@v3 - # with: - # name: test-logs - # - name: View the test logs - # run: | - # ls -l work/matrix/matrix/tests/regression/logs/* \ No newline at end of file + fi \ No newline at end of file From fd439cb208486b2786ee6cd047f5d1dc01ed38ea Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 12:37:51 -0800 Subject: [PATCH 24/62] trying to sudo install ace --- .github/workflows/python-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 1506619dd..b6a9c0f35 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -26,6 +26,8 @@ jobs: python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install ace + sudo apt-get update + sudo apt-get install ace - name: List versions of things run: | python --version From 2be8cf998a8760d5df7da7e06fb0aa739759b757 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:47:59 -0800 Subject: [PATCH 25/62] ace again --- .github/workflows/python-test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index b6a9c0f35..8860344dd 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -36,6 +36,10 @@ jobs: which delphin echo MADE IT HERE echo $PATH + echo HEREEEE + echo $GITHUB_PATH + echo HERE2 + which ace - name: Test id: run-tests run: | From fa47add27db42df4dc8f43d08b4153e55c687a22 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:49:33 -0800 Subject: [PATCH 26/62] adding ace to path --- .github/workflows/python-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 8860344dd..cb3f4959a 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -40,6 +40,7 @@ jobs: echo $GITHUB_PATH echo HERE2 which ace + echo "/usr/bin/ace" >> $GITHUB_PATH - name: Test id: run-tests run: | From 07deb05575b85ee6acd462e6b89a758f8869362b Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:52:06 -0800 Subject: [PATCH 27/62] wrong sudo update --- .github/workflows/python-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index cb3f4959a..6aa8eeca1 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -27,7 +27,6 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install ace sudo apt-get update - sudo apt-get install ace - name: List versions of things run: | python --version From 9f1dcc7b98079b98bc7824d6cbf9dc672b1cd6bf Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:55:15 -0800 Subject: [PATCH 28/62] usr/bin/local --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 6aa8eeca1..af75fad52 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -38,7 +38,7 @@ jobs: echo HEREEEE echo $GITHUB_PATH echo HERE2 - which ace +# which ace echo "/usr/bin/ace" >> $GITHUB_PATH - name: Test id: run-tests From 1f108fe7397fb4bac192b7ed5c8cbd71f39bcc09 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:57:01 -0800 Subject: [PATCH 29/62] synax' G --- .github/workflows/python-test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index af75fad52..752d79e5d 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -26,7 +26,6 @@ jobs: python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install ace - sudo apt-get update - name: List versions of things run: | python --version @@ -38,7 +37,6 @@ jobs: echo HEREEEE echo $GITHUB_PATH echo HERE2 -# which ace echo "/usr/bin/ace" >> $GITHUB_PATH - name: Test id: run-tests From 35362395d6125f520bd4c158e0926893139e59a1 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:59:22 -0800 Subject: [PATCH 30/62] github path --- .github/workflows/python-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 752d79e5d..09d01947c 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -38,6 +38,9 @@ jobs: echo $GITHUB_PATH echo HERE2 echo "/usr/bin/ace" >> $GITHUB_PATH + echo $GITHUB_PATH + export GITHUB_PATH=$GITHUB_PATH:/usr/bin/ace + echo $GITHUB_PATH - name: Test id: run-tests run: | From 6bce5d9433b6d3d8e27d5b5da2734d69411517dd Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:03:49 -0800 Subject: [PATCH 31/62] trying to finda ce --- .github/workflows/python-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 09d01947c..ec95eced6 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -37,6 +37,7 @@ jobs: echo HEREEEE echo $GITHUB_PATH echo HERE2 + find / -name ace echo "/usr/bin/ace" >> $GITHUB_PATH echo $GITHUB_PATH export GITHUB_PATH=$GITHUB_PATH:/usr/bin/ace From 4cb99b0d13874918e288a886001e4e6865309238 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:05:35 -0800 Subject: [PATCH 32/62] found ace at /opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/ace --- .github/workflows/python-test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index ec95eced6..10aa71fb9 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -37,10 +37,9 @@ jobs: echo HEREEEE echo $GITHUB_PATH echo HERE2 - find / -name ace echo "/usr/bin/ace" >> $GITHUB_PATH echo $GITHUB_PATH - export GITHUB_PATH=$GITHUB_PATH:/usr/bin/ace + export GITHUB_PATH=$GITHUB_PATH:/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/ace echo $GITHUB_PATH - name: Test id: run-tests From 4e3d2241ca167f3e6933e5cf2887215763a62fca Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:08:52 -0800 Subject: [PATCH 33/62] searching for executable --- .github/workflows/python-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 10aa71fb9..70d397ff4 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -41,6 +41,7 @@ jobs: echo $GITHUB_PATH export GITHUB_PATH=$GITHUB_PATH:/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/ace echo $GITHUB_PATH + find /opt/hostedtoolcache/Python/3.9.20/x64/ -name ace - name: Test id: run-tests run: | From eac9990f4c82963504a27b958b470d943d6c9dce Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:22:22 -0800 Subject: [PATCH 34/62] trying fresh example with venv --- .github/workflows/python-test.yml | 82 ++++++++++++----------------- .github/workflows/python-test0.txt2 | 78 +++++++++++++++++++++++++++ 2 files changed, 113 insertions(+), 47 deletions(-) create mode 100644 .github/workflows/python-test0.txt2 diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 70d397ff4..93a292f08 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -11,52 +11,40 @@ permissions: contents: read jobs: - build-and-test: + test: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - with: - python-version: '3.9' - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: "3.9" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install ace - - name: List versions of things - run: | - python --version - delphin --version - which python - which delphin - echo MADE IT HERE - echo $PATH - echo HEREEEE - echo $GITHUB_PATH - echo HERE2 - echo "/usr/bin/ace" >> $GITHUB_PATH - echo $GITHUB_PATH - export GITHUB_PATH=$GITHUB_PATH:/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/ace - echo $GITHUB_PATH - find /opt/hostedtoolcache/Python/3.9.20/x64/ -name ace - - name: Test - id: run-tests - run: | - python3 rtest.py wh-* - continue-on-error: true - - name: Upload test logs as artifact - if: always() - uses: actions/upload-artifact@v4 - with: - name: test-logs - path: /home/runner/work/matrix/matrix/tests/regression/logs/* - - name: Fail the job if the tests failed - if: always() - run: | - if [ ${{ steps.run-tests.outcome }} != 'success' ]; then - echo "Tests failed. Check logs for details." - exit 1 - fi \ No newline at end of file + - name: Checkout code + uses: actions/checkout@v2 + + # Set up Python environment (with virtualenv) + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' # or whatever version you're using + + # Create a virtual environment (optional but recommended) + - name: Create virtual environment + run: | + python -m venv venv + source venv/bin/activate + + # Install dependencies (including delphin and ace) + - name: Install Delphin + run: | + source venv/bin/activate + pip install --upgrade pip + pip install delphin # This will install both delphin and ace + + # Ensure that ace can be imported from Python + - name: Test Python import + run: | + source venv/bin/activate + python -c "from delphin import ace; print('ace imported successfully')" + + # Run your tests that use ace + - name: Run tests + run: | + source venv/bin/activate + python your_test_script.py \ No newline at end of file diff --git a/.github/workflows/python-test0.txt2 b/.github/workflows/python-test0.txt2 new file mode 100644 index 000000000..850dc8553 --- /dev/null +++ b/.github/workflows/python-test0.txt2 @@ -0,0 +1,78 @@ +# This workflow will install Python dependencies and run tests with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python test + +on: [push] + # pull_request: + # branches: [ "trunk" ] + +permissions: + contents: read + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + python-version: '3.9' + - name: Set up Python 3.9 + uses: actions/setup-python@v3 + with: + python-version: "3.9" + # Create a virtual environment (optional but recommended) + - name: Create virtual environment + run: | + python -m venv venv + source venv/bin/activate + # Install dependencies (including delphin and ace) + - name: Install Delphin + run: | + source venv/bin/activate + pip install --upgrade pip + pip install delphin + # Ensure that ace can be imported from Python + - name: Test Python import + run: | + source venv/bin/activate + python -c "from delphin import ace; print('ace imported successfully')" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install ace + - name: List versions of things + run: | + python --version + delphin --version + which python + which delphin + echo MADE IT HERE + echo $PATH + echo HEREEEE + echo $GITHUB_PATH + echo HERE2 + echo "/usr/bin/ace" >> $GITHUB_PATH + echo $GITHUB_PATH + export GITHUB_PATH=$GITHUB_PATH:/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/ace + echo $GITHUB_PATH + find /opt/hostedtoolcache/Python/3.9.20/x64/ -name ace + - name: Test + id: run-tests + run: | + python3 rtest.py wh-* + continue-on-error: true + - name: Upload test logs as artifact + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-logs + path: /home/runner/work/matrix/matrix/tests/regression/logs/* + - name: Fail the job if the tests failed + if: always() + run: | + if [ ${{ steps.run-tests.outcome }} != 'success' ]; then + echo "Tests failed. Check logs for details." + exit 1 + fi \ No newline at end of file From faaa368a93198200b73759f4625e53cfef98ce68 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:24:36 -0800 Subject: [PATCH 35/62] debugging venv --- .github/workflows/python-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 93a292f08..7373aa844 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -41,6 +41,8 @@ jobs: - name: Test Python import run: | source venv/bin/activate + python -m pip show delphin + python -m pip freeze python -c "from delphin import ace; print('ace imported successfully')" # Run your tests that use ace From b4b2a38dc3a986d69e3dcb033aa6d1dd4236ad80 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:25:55 -0800 Subject: [PATCH 36/62] upgrade delphin version --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 7373aa844..ae191f9ec 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -35,7 +35,7 @@ jobs: run: | source venv/bin/activate pip install --upgrade pip - pip install delphin # This will install both delphin and ace + pip install delphin==1.4.0 # This will install both delphin and ace # Ensure that ace can be imported from Python - name: Test Python import From 556322844aa092caecd75b284355118669b6d141 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:26:55 -0800 Subject: [PATCH 37/62] made it pydelphin --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index ae191f9ec..3304be954 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -35,7 +35,7 @@ jobs: run: | source venv/bin/activate pip install --upgrade pip - pip install delphin==1.4.0 # This will install both delphin and ace + pip install pydelphin==1.4.0 # This will install both delphin and ace # Ensure that ace can be imported from Python - name: Test Python import From 1cfee0accf0c509b326fbea62e5afa55bf380fc0 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:27:47 -0800 Subject: [PATCH 38/62] pydelphin search --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 3304be954..906215bce 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -41,7 +41,7 @@ jobs: - name: Test Python import run: | source venv/bin/activate - python -m pip show delphin + python -m pip show pydelphin python -m pip freeze python -c "from delphin import ace; print('ace imported successfully')" From 1d1166fc75f257711c219c609281ec30f9f9b07e Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:30:14 -0800 Subject: [PATCH 39/62] last thing worked so now using correct test script --- .github/workflows/python-test.yml | 19 +++++++++-- .github/workflows/python-test0.txt | 53 ------------------------------ 2 files changed, 17 insertions(+), 55 deletions(-) delete mode 100644 .github/workflows/python-test0.txt diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 906215bce..e19c18557 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -46,7 +46,22 @@ jobs: python -c "from delphin import ace; print('ace imported successfully')" # Run your tests that use ace - - name: Run tests + - name: Test + id: run-tests run: | source venv/bin/activate - python your_test_script.py \ No newline at end of file + python3 rtest.py wh-* + continue-on-error: true + - name: Upload test logs as artifact + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-logs + path: /home/runner/work/matrix/matrix/tests/regression/logs/* + - name: Fail the job if the tests failed + if: always() + run: | + if [ ${{ steps.run-tests.outcome }} != 'success' ]; then + echo "Tests failed. Check logs for details." + exit 1 + fi \ No newline at end of file diff --git a/.github/workflows/python-test0.txt b/.github/workflows/python-test0.txt deleted file mode 100644 index 0145713af..000000000 --- a/.github/workflows/python-test0.txt +++ /dev/null @@ -1,53 +0,0 @@ -# This workflow will install Python dependencies and run tests with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Python test - -on: [push] - # pull_request: - # branches: [ "trunk" ] - -permissions: - contents: read - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - python-version: '3.9' - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: "3.9" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install ace - - name: List versions of things - run: | - python --version - delphin --version - which python - which delphin - echo MADE IT HERE - echo $PATH - test: - needs: [build] - runs-on: ubuntu-latest - continue-on-error: true - steps: - - name: Test - run: | - python3 rtest.py Cree - logs: - runs-on: ubuntu-latest - needs: [test] - steps: - - name: Upload test logs as artifact - uses: actions/upload-artifact@v3 - with: - name: test-logs - path: /home/runner/test_logs/*.log \ No newline at end of file From 1a1276e67d7b89959d2b353c4aa4be6b4e8aa8d7 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:01:21 -0800 Subject: [PATCH 40/62] still looking for ace --- .github/workflows/python-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index e19c18557..bbb3f5b60 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -44,6 +44,13 @@ jobs: python -m pip show pydelphin python -m pip freeze python -c "from delphin import ace; print('ace imported successfully')" + ls venv/bin + python -c "from delphin import ace; price(ace.__file__)" + which ace || echo "ace not found in PATH" + ace --help || echo "Unable to run ace as executable" + echo "$PWD/venv/bin" >> $GITHUB_PATH + echo $GITHUB_PATH + which ace || echo "still not found" # Run your tests that use ace - name: Test From c462c33a6a30424c7c5fe551f1a2fc15a6adb134 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:02:16 -0800 Subject: [PATCH 41/62] typo --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index bbb3f5b60..f6e3c8f90 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -45,7 +45,7 @@ jobs: python -m pip freeze python -c "from delphin import ace; print('ace imported successfully')" ls venv/bin - python -c "from delphin import ace; price(ace.__file__)" + python -c "from delphin import ace; print(ace.__file__)" which ace || echo "ace not found in PATH" ace --help || echo "Unable to run ace as executable" echo "$PWD/venv/bin" >> $GITHUB_PATH From 68c296c76384ed4404e05ac84844b67d2a1a0d29 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:15:25 -0800 Subject: [PATCH 42/62] github path --- .github/workflows/python-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index f6e3c8f90..3b14e6565 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -48,7 +48,9 @@ jobs: python -c "from delphin import ace; print(ace.__file__)" which ace || echo "ace not found in PATH" ace --help || echo "Unable to run ace as executable" - echo "$PWD/venv/bin" >> $GITHUB_PATH + echo "$PWD/venv/bin" + echo $GITHUB_PATH + export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin echo $GITHUB_PATH which ace || echo "still not found" From 68f013cf4482704ff2d5aac0e3da33f77d9ba4e7 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:32:04 -0800 Subject: [PATCH 43/62] using curl --- .github/workflows/python-test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 3b14e6565..9bfbc2794 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -51,8 +51,21 @@ jobs: echo "$PWD/venv/bin" echo $GITHUB_PATH export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin + export PATH=$PATH:$PWD/venv/bin echo $GITHUB_PATH which ace || echo "still not found" + + - name: Attempting ace curl + run: | + source venv/bin/activate + TAR_URL="https://sweaglesw.org/linguistics/ace/download/ace-0.9.34-x86-64.tar.gz" + curl -L $TAR_URL -o /tmp/file.tar.gz + mkdir -p /tmp/file.tar.gz -C /tmp/extracted + ls /tmp/extracted + ls venv/bin + export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin + export PATH=$PATH:$PWD/venv/bin + which ace || "STILL NOT FOUND" # Run your tests that use ace - name: Test From 3d61049634ba1e5d8a472389972b7efd38fc5ebd Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:33:56 -0800 Subject: [PATCH 44/62] typo --- .github/workflows/python-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 9bfbc2794..8f5c5f4b0 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -60,7 +60,8 @@ jobs: source venv/bin/activate TAR_URL="https://sweaglesw.org/linguistics/ace/download/ace-0.9.34-x86-64.tar.gz" curl -L $TAR_URL -o /tmp/file.tar.gz - mkdir -p /tmp/file.tar.gz -C /tmp/extracted + mkdir -p /tmp/extracted + tar -xzvf /tmp/file.tar.gz -C /tmp/extracted ls /tmp/extracted ls venv/bin export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin From b54282f0f764e5cdfead4be3be894a1444eb839d Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:36:19 -0800 Subject: [PATCH 45/62] printing paths --- .github/workflows/python-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 8f5c5f4b0..db2c3160a 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -63,9 +63,14 @@ jobs: mkdir -p /tmp/extracted tar -xzvf /tmp/file.tar.gz -C /tmp/extracted ls /tmp/extracted + echo "THIS IS THE BIN INCOMING" ls venv/bin export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin export PATH=$PATH:$PWD/venv/bin + echo "github path====" + echo GITHUB_PATH + echo "path====" + echo $PATH which ace || "STILL NOT FOUND" # Run your tests that use ace From c08e938f0bae8262c5574628e68b96d4058a0930 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:42:23 -0800 Subject: [PATCH 46/62] moving ace executable to bin --- .github/workflows/python-test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index db2c3160a..c021ffd1a 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -63,12 +63,17 @@ jobs: mkdir -p /tmp/extracted tar -xzvf /tmp/file.tar.gz -C /tmp/extracted ls /tmp/extracted + chmod +x /tmp/extracted/ace-0.9.34/ace + sudo mv /tmp/extracted/ace-0.9.34/ace $PWD/venv/bin/ace + which ace || "first try didn't work" + sudo mv /tmp/extracted/ace-0.9.34/ace venv/bin/ace + which ace || "second try didn't work" echo "THIS IS THE BIN INCOMING" ls venv/bin export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin export PATH=$PATH:$PWD/venv/bin echo "github path====" - echo GITHUB_PATH + echo $GITHUB_PATH echo "path====" echo $PATH which ace || "STILL NOT FOUND" From a5d65ad00fb40d41fc72bf9d426ff369c0b8d8fd Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:48:15 -0800 Subject: [PATCH 47/62] debug --- .github/workflows/python-test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index c021ffd1a..cb3c3d5c8 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -64,6 +64,10 @@ jobs: tar -xzvf /tmp/file.tar.gz -C /tmp/extracted ls /tmp/extracted chmod +x /tmp/extracted/ace-0.9.34/ace + echo "made it past chmod" + ls -R /tmp/extracted + echo "now ls -R inner folder" + ls -R /tmp/extracted/ace-0.9.34 sudo mv /tmp/extracted/ace-0.9.34/ace $PWD/venv/bin/ace which ace || "first try didn't work" sudo mv /tmp/extracted/ace-0.9.34/ace venv/bin/ace From 822c966d60e186e1ed12c13b28da0336bfefe091 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:53:29 -0800 Subject: [PATCH 48/62] confused --- .github/workflows/python-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index cb3c3d5c8..e575a8c69 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -68,8 +68,11 @@ jobs: ls -R /tmp/extracted echo "now ls -R inner folder" ls -R /tmp/extracted/ace-0.9.34 + echo "seeing if symlink" + file /tmp/extracted/ace-0.9.34/ace sudo mv /tmp/extracted/ace-0.9.34/ace $PWD/venv/bin/ace which ace || "first try didn't work" + ls -l /tmp/extracted/ace-0.9.34 sudo mv /tmp/extracted/ace-0.9.34/ace venv/bin/ace which ace || "second try didn't work" echo "THIS IS THE BIN INCOMING" From eb2964d5c37971e8d977dd79b84672f516185b52 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:55:15 -0800 Subject: [PATCH 49/62] wrong order --- .github/workflows/python-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index e575a8c69..3ad735ddd 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -70,9 +70,11 @@ jobs: ls -R /tmp/extracted/ace-0.9.34 echo "seeing if symlink" file /tmp/extracted/ace-0.9.34/ace + echo "last check" + ls -l /tmp/extracted/ace-0.9.34 + echo "about to mv" sudo mv /tmp/extracted/ace-0.9.34/ace $PWD/venv/bin/ace which ace || "first try didn't work" - ls -l /tmp/extracted/ace-0.9.34 sudo mv /tmp/extracted/ace-0.9.34/ace venv/bin/ace which ace || "second try didn't work" echo "THIS IS THE BIN INCOMING" From 1e05c67b2fb7332a9b51a62ccb83816814a6fc6a Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:56:44 -0800 Subject: [PATCH 50/62] trying withouot /Users/alexcassell/Desktop/CLMS/LING600/matrix --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 3ad735ddd..476829a6d 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -73,7 +73,7 @@ jobs: echo "last check" ls -l /tmp/extracted/ace-0.9.34 echo "about to mv" - sudo mv /tmp/extracted/ace-0.9.34/ace $PWD/venv/bin/ace + sudo mv /tmp/extracted/ace-0.9.34/ace /venv/bin/ace which ace || "first try didn't work" sudo mv /tmp/extracted/ace-0.9.34/ace venv/bin/ace which ace || "second try didn't work" From 8811228eaa8c5a1e3dcb3ac8e26f7ce03692b7b9 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:59:24 -0800 Subject: [PATCH 51/62] venv instead of /venv --- .github/workflows/python-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 476829a6d..7d866e1cd 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -72,8 +72,10 @@ jobs: file /tmp/extracted/ace-0.9.34/ace echo "last check" ls -l /tmp/extracted/ace-0.9.34 + echo "looking for /venv/bin" + ls -R venv/bin echo "about to mv" - sudo mv /tmp/extracted/ace-0.9.34/ace /venv/bin/ace + sudo mv /tmp/extracted/ace-0.9.34/ace venv/bin/ace which ace || "first try didn't work" sudo mv /tmp/extracted/ace-0.9.34/ace venv/bin/ace which ace || "second try didn't work" From 2a3c08213fa233b58887778523b5beaa834adbcb Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 14:06:16 -0800 Subject: [PATCH 52/62] trying --- .github/workflows/python-test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 7d866e1cd..4f8aaebce 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -75,10 +75,8 @@ jobs: echo "looking for /venv/bin" ls -R venv/bin echo "about to mv" - sudo mv /tmp/extracted/ace-0.9.34/ace venv/bin/ace + sudo mv /tmp/extracted/ace-0.9.34/ace $VIRTUAL_ENV/bin/ace which ace || "first try didn't work" - sudo mv /tmp/extracted/ace-0.9.34/ace venv/bin/ace - which ace || "second try didn't work" echo "THIS IS THE BIN INCOMING" ls venv/bin export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin From 6b1ee491dc6ee879aef616bcb26cc08d5582c24e Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 14:09:24 -0800 Subject: [PATCH 53/62] removing echos --- .github/workflows/python-test.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 4f8aaebce..2e6a58733 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -44,16 +44,8 @@ jobs: python -m pip show pydelphin python -m pip freeze python -c "from delphin import ace; print('ace imported successfully')" - ls venv/bin - python -c "from delphin import ace; print(ace.__file__)" - which ace || echo "ace not found in PATH" - ace --help || echo "Unable to run ace as executable" - echo "$PWD/venv/bin" - echo $GITHUB_PATH export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin export PATH=$PATH:$PWD/venv/bin - echo $GITHUB_PATH - which ace || echo "still not found" - name: Attempting ace curl run: | @@ -62,30 +54,8 @@ jobs: curl -L $TAR_URL -o /tmp/file.tar.gz mkdir -p /tmp/extracted tar -xzvf /tmp/file.tar.gz -C /tmp/extracted - ls /tmp/extracted chmod +x /tmp/extracted/ace-0.9.34/ace - echo "made it past chmod" - ls -R /tmp/extracted - echo "now ls -R inner folder" - ls -R /tmp/extracted/ace-0.9.34 - echo "seeing if symlink" - file /tmp/extracted/ace-0.9.34/ace - echo "last check" - ls -l /tmp/extracted/ace-0.9.34 - echo "looking for /venv/bin" - ls -R venv/bin - echo "about to mv" sudo mv /tmp/extracted/ace-0.9.34/ace $VIRTUAL_ENV/bin/ace - which ace || "first try didn't work" - echo "THIS IS THE BIN INCOMING" - ls venv/bin - export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin - export PATH=$PATH:$PWD/venv/bin - echo "github path====" - echo $GITHUB_PATH - echo "path====" - echo $PATH - which ace || "STILL NOT FOUND" # Run your tests that use ace - name: Test From b7bc38f43817db404cc87e65501d317e039e378e Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 14:12:15 -0800 Subject: [PATCH 54/62] removing unneeded steps --- .github/workflows/python-test.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 2e6a58733..2926879f5 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -35,19 +35,9 @@ jobs: run: | source venv/bin/activate pip install --upgrade pip - pip install pydelphin==1.4.0 # This will install both delphin and ace - - # Ensure that ace can be imported from Python - - name: Test Python import - run: | - source venv/bin/activate - python -m pip show pydelphin - python -m pip freeze - python -c "from delphin import ace; print('ace imported successfully')" - export GITHUB_PATH=$GITHUB_PATH:$PWD/venv/bin - export PATH=$PATH:$PWD/venv/bin + pip install pydelphin==1.4.0 - - name: Attempting ace curl + - name: Install ace (download tar and move executable to virtual bin) run: | source venv/bin/activate TAR_URL="https://sweaglesw.org/linguistics/ace/download/ace-0.9.34-x86-64.tar.gz" @@ -57,7 +47,7 @@ jobs: chmod +x /tmp/extracted/ace-0.9.34/ace sudo mv /tmp/extracted/ace-0.9.34/ace $VIRTUAL_ENV/bin/ace - # Run your tests that use ace + # Run regression test suite - name: Test id: run-tests run: | From 207d770b3456cab856c662c7dc0466ad87748447 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 14:15:42 -0800 Subject: [PATCH 55/62] using requirements.txt --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 2926879f5..179e91864 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -35,7 +35,7 @@ jobs: run: | source venv/bin/activate pip install --upgrade pip - pip install pydelphin==1.4.0 + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Install ace (download tar and move executable to virtual bin) run: | From 956102fbff2d8abbe14209f3fa1220162f08ed84 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Sun, 10 Nov 2024 14:18:13 -0800 Subject: [PATCH 56/62] changing name --- .github/workflows/github-actions-demo.yml | 18 ----- .github/workflows/python-test0.txt2 | 78 ------------------- .../{python-test.yml => regression-test.yml} | 13 ++-- 3 files changed, 6 insertions(+), 103 deletions(-) delete mode 100644 .github/workflows/github-actions-demo.yml delete mode 100644 .github/workflows/python-test0.txt2 rename .github/workflows/{python-test.yml => regression-test.yml} (86%) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml deleted file mode 100644 index 15a61d6b6..000000000 --- a/.github/workflows/github-actions-demo.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] -jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/.github/workflows/python-test0.txt2 b/.github/workflows/python-test0.txt2 deleted file mode 100644 index 850dc8553..000000000 --- a/.github/workflows/python-test0.txt2 +++ /dev/null @@ -1,78 +0,0 @@ -# This workflow will install Python dependencies and run tests with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Python test - -on: [push] - # pull_request: - # branches: [ "trunk" ] - -permissions: - contents: read - -jobs: - build-and-test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - python-version: '3.9' - - name: Set up Python 3.9 - uses: actions/setup-python@v3 - with: - python-version: "3.9" - # Create a virtual environment (optional but recommended) - - name: Create virtual environment - run: | - python -m venv venv - source venv/bin/activate - # Install dependencies (including delphin and ace) - - name: Install Delphin - run: | - source venv/bin/activate - pip install --upgrade pip - pip install delphin - # Ensure that ace can be imported from Python - - name: Test Python import - run: | - source venv/bin/activate - python -c "from delphin import ace; print('ace imported successfully')" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install ace - - name: List versions of things - run: | - python --version - delphin --version - which python - which delphin - echo MADE IT HERE - echo $PATH - echo HEREEEE - echo $GITHUB_PATH - echo HERE2 - echo "/usr/bin/ace" >> $GITHUB_PATH - echo $GITHUB_PATH - export GITHUB_PATH=$GITHUB_PATH:/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/ace - echo $GITHUB_PATH - find /opt/hostedtoolcache/Python/3.9.20/x64/ -name ace - - name: Test - id: run-tests - run: | - python3 rtest.py wh-* - continue-on-error: true - - name: Upload test logs as artifact - if: always() - uses: actions/upload-artifact@v4 - with: - name: test-logs - path: /home/runner/work/matrix/matrix/tests/regression/logs/* - - name: Fail the job if the tests failed - if: always() - run: | - if [ ${{ steps.run-tests.outcome }} != 'success' ]; then - echo "Tests failed. Check logs for details." - exit 1 - fi \ No newline at end of file diff --git a/.github/workflows/python-test.yml b/.github/workflows/regression-test.yml similarity index 86% rename from .github/workflows/python-test.yml rename to .github/workflows/regression-test.yml index 179e91864..bb837450a 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/regression-test.yml @@ -1,11 +1,10 @@ -# This workflow will install Python dependencies and run tests with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python +# This workflow will install Python and ace dependencies on a virtual environment +# and run the regression test suite before a pull request can be merged. +name: Regression test -name: Python test - -on: [push] - # pull_request: - # branches: [ "trunk" ] +on: + pull_request: + branches: [ "trunk" ] permissions: contents: read From 72ac9e4e7006c3d00973c3fa7a6dc992b0617d66 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:45:45 -0800 Subject: [PATCH 57/62] created README --- .github/workflows/README | 19 +++++++++++++++++++ .github/workflows/regression-test.yml | 6 ++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/README diff --git a/.github/workflows/README b/.github/workflows/README new file mode 100644 index 000000000..d0853761c --- /dev/null +++ b/.github/workflows/README @@ -0,0 +1,19 @@ +This directory contains the GitHub Actions workflows that are integrated with +this repository. Documentation and templates can be found at https://docs.github.com/en/actions. + +The regression-test.yml workflow is used to verify a successful run of the test suite +before introducing new code to the trunk branch. Any workflow that is triggered on a +pull request can be reversed by updating + +on: + pull_request: + branches: [ "trunk" ] + +to on: [push] + +Workflows can also be disabled entirely from the GitHub Actions page. + +Notes about GitHub Actions for future use: +1. 2000 minutes of runtime and 500 MB storage per month allowed for GitHub Free plan. +Given that each run takes under 30 seconds and uploads roughly 16 KB of logs +(with 90-day retention), these resources are plenty. diff --git a/.github/workflows/regression-test.yml b/.github/workflows/regression-test.yml index bb837450a..4b9791250 100644 --- a/.github/workflows/regression-test.yml +++ b/.github/workflows/regression-test.yml @@ -3,8 +3,14 @@ name: Regression test on: + # Only trigger workflow on PR to trunk with changes at the included paths pull_request: branches: [ "trunk" ] + paths: + - 'gmcs' + - 'matrix-core' + - 'tests/regression' + - '*.py' # Any .py script on main level (matrix.py, myserver.py, rtest.py) permissions: contents: read From 61ea299533808029e55d230fe304eb89965a27ce Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:47:32 -0800 Subject: [PATCH 58/62] testing paths --- matrix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matrix.py b/matrix.py index 0535fda6b..1bb02b070 100755 --- a/matrix.py +++ b/matrix.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 +### TEST """ A general-purpose script for running Matrix code. From 200c09c27c9b923e76f3b26fd640ea164a594b97 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:48:27 -0800 Subject: [PATCH 59/62] removing test --- matrix.py | 1 - 1 file changed, 1 deletion(-) diff --git a/matrix.py b/matrix.py index 1bb02b070..0535fda6b 100755 --- a/matrix.py +++ b/matrix.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -### TEST """ A general-purpose script for running Matrix code. From 0bb116ba684d5091b990af1168e16f0a91eaa3f5 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:48:54 -0800 Subject: [PATCH 60/62] running all tests --- .github/workflows/regression-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/regression-test.yml b/.github/workflows/regression-test.yml index 4b9791250..e463c3bdf 100644 --- a/.github/workflows/regression-test.yml +++ b/.github/workflows/regression-test.yml @@ -57,7 +57,7 @@ jobs: id: run-tests run: | source venv/bin/activate - python3 rtest.py wh-* + python3 rtest.py continue-on-error: true - name: Upload test logs as artifact if: always() From 96cdf51e0f79f5757ccf9c9fa61481ac42cb6693 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:49:46 -0800 Subject: [PATCH 61/62] removing test --- matrix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matrix.py b/matrix.py index 0535fda6b..f878659b2 100755 --- a/matrix.py +++ b/matrix.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 +##test """ A general-purpose script for running Matrix code. From ba4f6e027f1249c56210c8ddbf2fad3f56be6507 Mon Sep 17 00:00:00 2001 From: ajcassell <41599599+ajcassell@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:53:50 -0800 Subject: [PATCH 62/62] final --- .github/workflows/README | 3 ++- matrix.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/README b/.github/workflows/README index d0853761c..40533c6c2 100644 --- a/.github/workflows/README +++ b/.github/workflows/README @@ -15,5 +15,6 @@ Workflows can also be disabled entirely from the GitHub Actions page. Notes about GitHub Actions for future use: 1. 2000 minutes of runtime and 500 MB storage per month allowed for GitHub Free plan. -Given that each run takes under 30 seconds and uploads roughly 16 KB of logs +Given that each run takes 2 minutes and uploads roughly 16 KB of logs (with 90-day retention), these resources are plenty. +2. Presently, the workflow will not be triggered if a UI change is made. diff --git a/matrix.py b/matrix.py index f878659b2..0535fda6b 100755 --- a/matrix.py +++ b/matrix.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -##test """ A general-purpose script for running Matrix code.