-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.5 KB
/
test.yml
File metadata and controls
39 lines (39 loc) · 1.5 KB
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
name: build
on: [push]
jobs:
test-and-run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: unit tests
run: pytest
- name: code coverage
run: pytest --cov=lib lib/
- name: convert single
run: |
python3 index.py -ek 9a81c16f-31e6-4be7-be6e-dfc872fe4155/35d2082a-431b-46b7-90da-75a526882f2f \
-if ./lib/input/ac-single-test1.input.storage \
-of ./lib/output/ac-single-test1.output.storage
- name: convert multi
run: |
python3 index.py -ek 9a81c16f-31e6-4be7-be6e-dfc872fe4155/35d2082a-431b-46b7-90da-75a526882f2f \
-if ./lib/input/ac-multi-test1.input.storage \
-of ./lib/output/ac-multi-test1.output.storage
- name: convert remote
run: |
python3 index.py -ek 9a81c16f-31e6-4be7-be6e-dfc872fe4155/35d2082a-431b-46b7-90da-75a526882f2f \
-if ./lib/input/ac-remote-test1.input.storage \
-of ./lib/output/ac-remote-test1.output.storage