| 1 |
--- |
| 2 |
name: Update |
| 3 |
on: # yamllint disable-line rule:truthy |
| 4 |
schedule: |
| 5 |
- cron: 11 7 * * * |
| 6 |
workflow_dispatch: |
| 7 |
|
| 8 |
jobs: |
| 9 |
Update: |
| 10 |
runs-on: ubuntu-latest |
| 11 |
steps: |
| 12 |
- uses: actions/checkout@master |
| 13 |
with: |
| 14 |
persist-credentials: false |
| 15 |
fetch-depth: 0 |
| 16 |
- name: Set up Python ${{ matrix.python-version }} |
| 17 |
uses: actions/setup-python@v1 |
| 18 |
with: |
| 19 |
python-version: ${{ matrix.python-version }} |
| 20 |
- name: Install dependencies |
| 21 |
run: | |
| 22 |
# All these steps are required so that mypy behaves equally than the |
| 23 |
# local environment, once mypy supports __pypackages__ try to use the |
| 24 |
# github action |
| 25 |
pip install virtualenv pdm |
| 26 |
virtualenv .venv |
| 27 |
source .venv/bin/activate |
| 28 |
pdm config python.use_venv True |
| 29 |
- name: Update requirements |
| 30 |
run: make update-production |
| 31 |
- name: Install the program |
| 32 |
run: make install |
| 33 |
- name: Run tests |
| 34 |
run: make all |