8000 Add integration test workflow · codesalatdev/python-picnic-api@aaab1fb · GitHub
[go: up one dir, main page]

Skip to content

Commit aaab1fb

Browse files
committed
Add integration test workflow
1 parent 16b940c commit aaab1fb

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/it.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Regular Integration Tests
2+
3+
on:
4+
schedule:
5+
# * is a special character in YAML so you have to quote this string
6+
- cron: '0 0 */7 * *'
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Python 3.12
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.12
20+
21+
- name: Install poetry 2.1.1
22+
run: |
23+
python -m ensurepip
24+
python -m pip install --upgrade pip
25+
python -m pip install poetry==2.1.1
26+
27+
- name: Install dependencies
28+
shell: bash
29+
run: python -m poetry install
30+
31+
- name: Test with pytest
32+
env:
33+
USERNAME: ${{ secrets.PICNIC_USERNAME }}
34+
PASSWORD: ${{ secrets.PICNIC_PASSWORD }}
35+
COUNTRY_CODE: ${{ secrets.PICNIC_COUNTRY_CODE }}
36+
run: |
37+
python -m poetry run python -m pytest -v integration_tests
38+

0 commit comments

Comments
 (0)
0