-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Massive refactoring of CI and flows (#289)
* user/password auth in fixtures; core testing can run on hcd * WIP: live_test_models and live_provider_info must become a db-dependent tower of fixtures * wip2, formatting * wip refactored all (nonvecze) env vars * restructure conftests to avoid quirks as much as possible * last before live_test_models becomes a fixture * full refactoring of the test suites + description in readme * improve workflows; add hcd workflow; condition nonAstra admin on env var * skip cursor timeout test on nonAstra (astra test is enough)
- Loading branch information
1 parent
85a3077
commit 48a9ffa
Showing
32 changed files
with
2,575 additions
and
312 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,39 @@ | ||
name: Run idiomatic pytest on HCD | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
env: | ||
# special setting to not drop any collection (core only) | ||
TEST_SKIP_COLLECTION_DELETE: ${{ secrets.TEST_SKIP_COLLECTION_DELETE }} | ||
# for admin-related testing if enabled | ||
DO_IDIOMATIC_ADMIN_TESTS: ${{ secrets.DO_IDIOMATIC_ADMIN_TESTS }} | ||
# hardcoding the target DB | ||
DOCKER_COMPOSE_LOCAL_DATA_API: "yes" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install | ||
- name: Run pytest | ||
run: | | ||
poetry run pytest tests/idiomatic |
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
Oops, something went wrong.