File tree Expand file tree Collapse file tree 6 files changed +13
-5
lines changed
Expand file tree Collapse file tree 6 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 7777 PG_HOST : localhost
7878 PG_DATABASE : piccolo
7979 PG_PASSWORD : postgres
80+ - name : Upload coverage
81+ uses : codecov/codecov-action@v1
82+ if : matrix.python-version == '3.7'
8083
8184 sqlite :
8285 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ The scripts follow GitHub's ["Scripts to Rule Them All"](https://github.com/gith
44
55Call them from the root of the project, e.g. ` ./scripts/lint.sh ` .
66
7- * ` scripts/coverage-report.sh ` - Generate coverage report.
87* ` scripts/lint.sh ` - Run the automated code linting/formatting tools.
98* ` scripts/release.sh ` - Publish package to PyPI.
9+ * ` scripts/tests.sh ` - General script to run tests and generate coverage report. It's used in the following scripts.
1010* ` scripts/test-postgres.sh ` - Run the test suite with Postgres.
1111* ` scripts/test-sqlite.sh ` - Run the test suite with SQLite.
1212* ` scripts/piccolo.sh ` - Run the Piccolo CLI on the example project in the ` tests ` folder.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55# To run a single test tests/test_foo.py::TestFoo::test_foo
66
77export PICCOLO_CONF=" tests.postgres_conf"
8- python -m pytest --cov=piccolo -s $@
8+ ./tests.sh
Original file line number Diff line number Diff line change 55# To run a single test tests/test_foo.py::TestFoo::test_foo
66
77export PICCOLO_CONF=" tests.sqlite_conf"
8- python -m pytest --cov=piccolo -s $@
8+ ./tests.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # To run all in a folder tests/
3+ # To run all in a file tests/test_foo.py
4+ # To run all in a class tests/test_foo.py::TestFoo
5+ # To run a single test tests/test_foo.py::TestFoo::test_foo
6+
7+ python -m pytest --cov=piccolo --cov-report xml --cov-report html --cov-fail-under 75 -s $@
You can’t perform that action at this time.
0 commit comments