-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (35 loc) · 1.02 KB
/
test.yaml
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
name: Test
on:
push:
pull_request:
jobs:
test-defaults:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: pip install --upgrade pip cookiecutter
- run: |
cd "${TMPDIR:-/tmp}"
cookiecutter --no-input "${GITHUB_WORKSPACE}"
python3 -m venv venv
. venv/bin/activate
pip install -r example-tool/requirements.txt
python example-tool/app.py
test-all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: pip install --upgrade pip cookiecutter
- run: |
cd "${TMPDIR:-/tmp}"
cookiecutter --no-input --config-file "${GITHUB_WORKSPACE}/.cookiecutterrc" "${GITHUB_WORKSPACE}"
python3 -m venv venv
. venv/bin/activate
pip install -r example-tool/requirements.txt
make -C example-tool