Skip to content

Commit

Permalink
👷 update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Apr 28, 2024
1 parent 7f837b5 commit c30bd18
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,38 @@ jobs:
pip install -r requirements_dev.txt
- name: Test with tox
run: tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: techouse/qs_codec
files: ./coverage.xml
env_vars: OS,PYTHON
verbose: true
ensure_compatibility:
needs: analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: "pip"
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
pip install -e .
pip install -r requirements_dev.txt
- name: Run a comparison test between qs_codec and qs for JavaScript
working-directory: tests/comparison
continue-on-error: true
run: |
set -e
pip install -e .
pushd tests/comparison || exit 1
npm install
node_output=$(node qs.js)
python_output=$(python3 qs.py)
Expand All @@ -81,14 +107,4 @@ jobs:
else
echo "The outputs are different."
exit 1
fi
popd || exit 1
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: techouse/qs_codec
files: ./coverage.xml
env_vars: OS,PYTHON
verbose: true
fi

0 comments on commit c30bd18

Please sign in to comment.