Skip to content

Commit

Permalink
Adapt Github workflows for fuzzy rules generation and JS QA/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Apr 12, 2024
1 parent ebe3bd8 commit 2adb325
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/Publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
python-version-file: pyproject.toml
architecture: x64

- name: Generate fuzzy rules
run: python rules/generate_rules.py

- name: Build Javascript wombatSetup.js
uses: addnab/docker-run-action@v3
with:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/QA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
pip install -U pip
pip install -e .[lint,scripts,test,check]
- name: Generate fuzzy rules
run: python rules/generate_rules.py

- name: Check black formatting
run: inv lint-black

Expand All @@ -32,3 +35,20 @@ jobs:

- name: Check pyright
run: inv check-pyright

- name: Set up Node.JS
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install JS dependencies
working-directory: javascript
run: yarn install

- name: Check prettier formatting
working-directory: javascript
run: yarn prettier-check

- name: Check eslint rules
working-directory: javascript
run: yarn eslint
24 changes: 24 additions & 0 deletions .github/workflows/Tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
pip install -U pip
pip install -e .[test,scripts]
- name: Generate fuzzy rules
run: python rules/generate_rules.py

- name: Run the tests
run: inv coverage --args "-vvv"

Expand All @@ -32,6 +35,19 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Set up Node.JS
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install JS dependencies
working-directory: javascript
run: yarn install

- name: Run JS tests
working-directory: javascript
run: yarn test

build_python:
runs-on: ubuntu-22.04
steps:
Expand All @@ -43,6 +59,14 @@ jobs:
python-version-file: pyproject.toml
architecture: x64

- name: Install dependencies (and project)
run: |
pip install -U pip build
pip install -e .
- name: Generate fuzzy rules
run: python rules/generate_rules.py

- name: Ensure we can build Python targets
run: |
pip install -U pip build
Expand Down

0 comments on commit 2adb325

Please sign in to comment.