forked from beer-garden/functionary
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 905 Bytes
/
tests.yml
File metadata and controls
37 lines (34 loc) · 905 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
name: Tests
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
component: [cli, functionary, runner]
name: ${{ matrix.component }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/cache@v3
with:
path: ~/.cache.pip
key:
${{ runner.os }}-pip-${{ hashFiles(format('{0}/requirements*.txt',
matrix.component)) }}
- name: pip install
run:
python -m pip install -r ${{ matrix.component }}/requirements.txt -r
${{ matrix.component }}/requirements-dev.txt
- name: run tests
run: pytest ${{ matrix.component }}/