-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.16 KB
/
main.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
33
34
35
36
37
38
39
40
41
name: Update Data Package
on:
# Triggers the workflow on push or pull request events but only for the main branch
# schedule:
# - cron: '17,34,57 7-18 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
name: Update Data Package
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- name: Install Poetry
uses: snok/install-poetry@v1.1.4
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install libraries
run: poetry install --no-interaction
- run: |
source .venv/bin/activate
python vaccination.py
- name: push
uses: actions-x/commit@v2