Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit e2f3f9d

Browse files
author
Sasha Gerrand
committed
Use examples as integration tests
1 parent f599967 commit e2f3f9d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/main.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,29 @@ jobs:
3636
user: __token__
3737
password: ${{ secrets.PYPI_API_TOKEN }}
3838

39+
integration-test:
40+
runs-on: ubuntu-latest
41+
42+
env:
43+
DUFFEL_ACCESS_TOKEN: ${{ secrets.DUFFEL_ACCESS_TOKEN }}
44+
45+
steps:
46+
- uses: actions/checkout@v2
47+
- name: Set up Python
48+
uses: actions/setup-python@v2
49+
with:
50+
python-version: 3.8
51+
- name: Install local version of package
52+
run: pip install --editable .
53+
- name: Run book and change example
54+
run: python examples/book-and-change.py
55+
- name: Run book with seat example
56+
run: python examples/book-with-seat.py
57+
- name: Run hold and pay later example
58+
run: python examples/hold-and-pay-later.py
59+
- name: Run search and book example
60+
run: python examples/search-and-book.py
61+
3962
test:
4063
runs-on: ubuntu-latest
4164
strategy:

0 commit comments

Comments
 (0)