Skip to content

Commit 27c77fc

Browse files
committed
Compstate scorer tests depend on PyYAML
Pick a version which is compatible with SRComp, though the later install of the full dependencies will replace it if needed.
1 parent 4a3c677 commit 27c77fc

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@ runs:
1010
# `cache-dependency-path` seems to need to be within the current directory. Use a temporary directory
1111
#
1212
tempdir=$(mktemp --directory --tmpdir=. --suffix=-srcomp-validate-action)
13-
cp ${{ github.action_path }}/requirements.txt $tempdir/requirements.txt
13+
cp ${{ github.action_path }}/**requirements.txt $tempdir
1414
echo "::set-output name=directory::${tempdir}"
1515
1616
- name: Set up Python
1717
uses: actions/setup-python@v3
1818
with:
1919
python-version: '3.10'
2020
cache: pip
21-
cache-dependency-path: ${{ steps.copy-requirements.outputs.directory }}/requirements.txt
21+
cache-dependency-path: ${{ steps.copy-requirements.outputs.directory }}/**requirements.txt
22+
23+
- name: Install Test Dependencies
24+
shell: bash
25+
run: pip install -U -r ${{ steps.copy-requirements.outputs.directory }}/test-requirements.txt
2226

2327
- name: Run Scoring tests
2428
shell: bash

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PyYAML>5<6

0 commit comments

Comments
 (0)