forked from mozilla/moz-sql-parser
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
199 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: build | ||
|
||
on: | ||
push: | ||
branches: [ "master", "dev" ] | ||
tags: | ||
- '[0-9]*' | ||
|
||
jobs: | ||
test: | ||
if: github.ref != 'refs/heads/dev' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.python-version }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.python-version }}- | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
cp packaging/setup.py . | ||
pip install . | ||
python tests/smoke_test.py | ||
python -m pip install --upgrade pip | ||
pip install --no-deps -r tests/requirements.lock | ||
pip install . | ||
- name: Run Tests | ||
run: | | ||
python -m unittest discover tests -v | ||
coverage: | ||
if: github.ref == 'refs/heads/dev' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.python-version }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.python-version }}- | ||
${{ runner.os }}-pip- | ||
- name: Coverage | ||
env: | ||
COVERAGE: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --no-deps -r tests/requirements.lock | ||
pip install coverage coveralls | ||
cp packaging/setup.py . | ||
pip install . | ||
coverage run --rcfile=packaging/coverage.ini -m unittest discover tests | ||
coverage report --rcfile=packaging/coverage.ini | ||
coveralls |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[run] | ||
source = ./mo_sql_parsing10 | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
except Exception as | ||
except BaseException as | ||
if DEBUG | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Tests pass with these versions 2024-04-03 | ||
# pip install --no-deps -r tests/requirements.lock | ||
hjson==3.1.0 | ||
mo-collections==5.556.24070 | ||
mo-dots==9.578.24081 | ||
mo-files==6.556.24070 | ||
mo-future==7.546.24057 | ||
mo-imports==7.546.24057 | ||
mo-json==6.556.24070 | ||
mo-kwargs==7.551.24062 | ||
mo-logs==8.556.24070 | ||
mo-math==7.552.24062 | ||
mo-parsing==8.581.24094 | ||
mo-sql-parsing==10.581.24094 | ||
mo-streams==1.556.24070 | ||
mo-testing==7.559.24071 | ||
mo-threads==6.556.24070 | ||
mo-times==5.556.24070 | ||
zstandard==0.22.0 |
Oops, something went wrong.