-
-
Notifications
You must be signed in to change notification settings - Fork 37
32 lines (31 loc) · 881 Bytes
/
update.yml
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
---
name: Update
on: # yamllint disable-line rule:truthy
schedule:
- cron: 11 7 * * *
workflow_dispatch:
jobs:
Update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install program
run: |
# All these steps are required so that mypy behaves equally than the
# local environment, once mypy supports __pypackages__ try to use the
# github action
pip install virtualenv pdm
virtualenv .venv
source .venv/bin/activate
pdm config python.use_venv True
- name: Update requirements
run: make update-production
- name: Run tests
run: make all