Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7da497

Browse files
committed
Add core tests workflow
This requires the following repository secrets will be configured on GH:E2E_TEST_HOSTE2E_TEST_HTTP_PATHE2E_TEST_TOKEN
1 parent9a6ebf2 commitf7da497

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

‎.github/workflows/e2e-tests.yml‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name:Core e2e Tests
2+
on:[push]
3+
jobs:
4+
run-core-e2e-tests:
5+
runs-on:ubuntu-latest
6+
env:
7+
host:${{ secrets.E2E_TEST_HOST }}
8+
http_path:${{ secrets.E2E_TEST_HTTP_PATH }}
9+
access_token:${{ secrets.E2E_TEST_TOKEN }}
10+
steps:
11+
#----------------------------------------------
12+
# check-out repo and set-up python
13+
#----------------------------------------------
14+
-name:Check out repository
15+
uses:actions/checkout@v2
16+
-name:Set up python
17+
id:setup-python
18+
uses:actions/setup-python@v2
19+
with:
20+
python-version:3.7
21+
#----------------------------------------------
22+
# ----- install & configure poetry -----
23+
#----------------------------------------------
24+
-name:Install Poetry
25+
uses:snok/install-poetry@v1
26+
with:
27+
virtualenvs-create:true
28+
virtualenvs-in-project:true
29+
installer-parallel:true
30+
31+
#----------------------------------------------
32+
# load cached venv if cache exists
33+
#----------------------------------------------
34+
-name:Load cached venv
35+
id:cached-poetry-dependencies
36+
uses:actions/cache@v2
37+
with:
38+
path:.venv
39+
key:venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ github.event.repository.name }}-${{ hashFiles('**/poetry.lock') }}
40+
#----------------------------------------------
41+
# install dependencies if cache does not exist
42+
#----------------------------------------------
43+
-name:Install dependencies
44+
if:steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
45+
run:poetry install --no-interaction --no-root
46+
#----------------------------------------------
47+
# install your root project, if required
48+
#----------------------------------------------
49+
-name:Install library
50+
run:poetry install --no-interaction
51+
#----------------------------------------------
52+
# run test suite
53+
#----------------------------------------------
54+
-name:Run tests
55+
run:poetry run python -m pytest tests/e2e/driver_tests.py::PySQLCoreTestSuite

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp