From 52510e0e49101319c708701e7e836e65765ca090 Mon Sep 17 00:00:00 2001 From: haarlemmer Date: Sat, 6 Apr 2024 23:04:38 +0800 Subject: [PATCH] New workflow to test the code. --- .github/workflows/testscript.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/testscript.yml diff --git a/.github/workflows/testscript.yml b/.github/workflows/testscript.yml new file mode 100644 index 0000000..01b9802 --- /dev/null +++ b/.github/workflows/testscript.yml @@ -0,0 +1,24 @@ +name: Auto Test + +on: + push: + branches: + - main + - release/* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run test script + run: | + python -m testscripts.testmain