-
Notifications
You must be signed in to change notification settings - Fork 42
37 lines (33 loc) · 972 Bytes
/
ci.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
36
37
name: test env
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
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
pip install black==22.3.0
pip install pytest
pip install -r requirements.txt
export PYTHONPATH=`pwd`
- name: style-check
run: |
black --check assistant_skill_analysis
- name: parse secrets
env:
WA_CONFIG: ${{secrets.WA_CONFIG}}
WA_CONFIG_ACTION: ${{secrets.WA_CONFIG_ACTION}}
run: |
python -m assistant_skill_analysis.utils.parse_secret
- name: unittest
run: |
pytest tests