-
-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (73 loc) · 2.5 KB
/
test-cli.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Command Line Interface
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
environment: develop
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python setup.py install
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: create-json-files
id: create-gdbc-json-downloader
uses: jsdaniell/[email protected]
with:
dir: './tests/cli_input/gdbc/'
name: "downloaderArgs.json"
json: ${{ secrets.GDBC_DOWNLOADER_ARGS_JSON }}
- name: create-json-files
id: create-gdbc-json-generator
uses: jsdaniell/[email protected]
with:
dir: './tests/cli_input/gdbc/'
name: "generatorArgs.json"
json: ${{ secrets.GDBC_GENERATOR_ARGS_JSON }}
- name: create-json-files
id: create-rapidapi-json-downloader
uses: jsdaniell/[email protected]
with:
dir: './tests/cli_input/rapidapi/'
name: "downloaderArgs.json"
json: ${{ secrets.RAPIDAPI_DOWNLOADER_ARGS_JSON }}
- name: create-json-files
id: create-rapidapi-json-generator
uses: jsdaniell/[email protected]
with:
dir: './tests/cli_input/rapidapi/'
name: "generatorArgs.json"
json: ${{ secrets.RAPIDAPI_GENERATOR_ARGS_JSON }}
# - name: create-json-files
# id: create-github-json-generator
# uses: jsdaniell/[email protected]
# with:
# dir: './tests/cli_input/github/'
# name: "generatorArgs.json"
# json: ${{ secrets.GH_GENERATOR_ARGS_JSON }}
# - name: create-json-files
# id: create-github-json-downloader
# uses: jsdaniell/[email protected]
# with:
# dir: './tests/cli_input/github/'
# name: "downloaderArgs.json"
# json: ${{ secrets.GH_DOWNLOADER_ARGS_JSON }}
- name: Test commands
run: |
pytest ./tests/test_cli.py