-
-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (37 loc) · 1018 Bytes
/
periodic.yaml
File metadata and controls
39 lines (37 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Periodic production tests
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
test-production-test-pypi:
runs-on: ubuntu-latest
strategy:
matrix:
PYPI_MIRROR:
- https://test.pypi.org/simple/
- https://pypi.org/simple/
steps:
- uses: actions/checkout@v3.1.0
- name: Set up Python
uses: actions/setup-python@v2.2.2
with:
python-version: 3.9
- name: install pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
- name: prepare tests
working-directory: tests/production
run: |
./prepare.sh
- name: install dependencies
working-directory: tests/production
env:
PYPI_MIRROR: ${{ matrix.PYPI_MIRROR }}
run: |
pipenv install --dev
- name: run tests
working-directory: tests/production
run: |
pipenv run test || (pipenv install --dev && pipenv run test)