From d967f73b0e850108ce7924a979455f33b57262fd Mon Sep 17 00:00:00 2001 From: Taha Morshedzadeh Date: Mon, 20 Nov 2023 17:07:33 +0000 Subject: [PATCH 1/2] Add test workflow checking html build w/o deploy --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..913ed0df --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: test +# testing the package by building the html help files. + +on: + push: + branches: [ dev, 'dev/*', 'feat/*', 'fix/*', 'hotfix/*', 'enh/*', 'misc/*' ] + pull_request: + branches: [ main, dev ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.9 + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install . + - name: Build docs + run: | + cd doc + mkdir _static + make html \ No newline at end of file From 38e7f0446ba4993784558d842d8a471a8176622e Mon Sep 17 00:00:00 2001 From: Taha Morshedzadeh Date: Mon, 20 Nov 2023 17:14:56 +0000 Subject: [PATCH 2/2] Reduce branch restrictions in test workflow --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 913ed0df..472933d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,9 +3,9 @@ name: test on: push: - branches: [ dev, 'dev/*', 'feat/*', 'fix/*', 'hotfix/*', 'enh/*', 'misc/*' ] + branches: [ '*' ] pull_request: - branches: [ main, dev ] + branches: [ '*' ] jobs: build: