e2e testing (#574)

This commit is contained in:
Wing Lian
2023-09-14 21:56:11 -04:00
committed by GitHub
parent 228420972e
commit 9218ebecd2
4 changed files with 114 additions and 3 deletions

31
.github/workflows/e2e.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: E2E
on:
workflow_dispatch:
jobs:
e2e-test:
runs-on: [self-hosted, gpu]
strategy:
fail-fast: false
matrix:
python_version: ["3.10"]
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
pip3 install -e .
pip3 install -r requirements-tests.txt
- name: Run e2e tests
run: |
pytest tests/e2e/

View File

@@ -23,7 +23,7 @@ jobs:
python_version: "3.10"
pytorch: 2.0.1
axolotl_extras:
runs-on: self-hosted
runs-on: [self-hosted, gpu, docker]
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -68,7 +68,7 @@ jobs:
pytorch: 2.0.1
axolotl_extras:
is_latest: true
runs-on: self-hosted
runs-on: [self-hosted, gpu, docker]
steps:
- name: Checkout
uses: actions/checkout@v3

View File

@@ -29,4 +29,4 @@ jobs:
- name: Run tests
run: |
pytest tests/
pytest --ignore=tests/e2e/ tests/