File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Garak pytest - Windows
2+
3+ on : [workflow_dispatch]
4+
5+ jobs :
6+ build_windows :
7+ runs-on : windows-latest
8+ strategy :
9+ matrix :
10+ python-version : ["3.10","3.12"]
11+ steps :
12+ - uses : actions/checkout@v3
13+ with :
14+ path : garak
15+
16+ - name : Checkout ecoji for modified windows install
17+ uses : actions/checkout@v3
18+ with :
19+ repository : mecforlove/ecoji-py
20+ path : ecoji-py
21+
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v4
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ cd ecoji-py
31+ echo "mitigate" > README.md
32+ pip install setuptools
33+ python setup.py install
34+ cd ../garak
35+ pip install -r requirements.txt
36+
37+ - name : Test with pytest
38+ run : |
39+ cd garak
40+ python -m pytest tests/
Original file line number Diff line number Diff line change 3333 - name : Test with pytest
3434 run : |
3535 python -m pytest tests/
36-
37- build_windows :
38- needs : pre_job
39- if : needs.pre_job.outputs.should_skip != 'true'
40- runs-on : windows-latest
41- strategy :
42- matrix :
43- python-version : ["3.10","3.12"]
44- steps :
45- - uses : actions/checkout@v3
46- with :
47- path : garak
48-
49- - name : Checkout ecoji for modified windows install
50- uses : actions/checkout@v3
51- with :
52- repository : mecforlove/ecoji-py
53- path : ecoji-py
54-
55- - name : Set up Python ${{ matrix.python-version }}
56- uses : actions/setup-python@v4
57- with :
58- python-version : ${{ matrix.python-version }}
59-
60- - name : Install dependencies
61- run : |
62- python -m pip install --upgrade pip
63- cd ecoji-py
64- echo "mitigate" > README.md
65- pip install setuptools
66- python setup.py install
67- cd ../garak
68- pip install -r requirements.txt
69-
70- - name : Test with pytest
71- run : |
72- cd garak
73- python -m pytest tests/
You can’t perform that action at this time.
0 commit comments