-
Notifications
You must be signed in to change notification settings - Fork 170
45 lines (38 loc) · 1.04 KB
/
code_sample_tests_r.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
42
43
44
45
name: Run monthly r tests
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
jobs:
run_all_tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install poetry
uses: snok/[email protected]
with:
version: 1.1.4
virtualenvs-in-project: true
- name: Cache dependencies
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.OS }}-python-3.8-{{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.OS }}-python-3.8-
${{ runner.OS }}-
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run py.test --language r