Skip to content

Commit

Permalink
🔅 ℹ️
Browse files Browse the repository at this point in the history
🔅 added dev_requirements.txt
ℹ️ fix GHA
  • Loading branch information
securisecctf committed Dec 3, 2019
1 parent d5c146a commit 00c9ef5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/tests_multi_os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,17 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v1
id: devcache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/dev_requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-dev-
- name: Install
if: steps.cache.outputs.cache-hit != 'true'
run: |
pip install pytest pytest-cov bandit sphinx recommonmark
pip install -r dev_requirements.txt
python -m pip install --upgrade pip
pip install .
- name: Test with pytest
Expand Down Expand Up @@ -67,10 +74,17 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v1
id: devcache
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip-${{ hashFiles('**/dev_requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-dev-
- name: Install
if: steps.cache.outputs.cache-hit != 'true'
run: |
pip install pytest pytest-cov bandit sphinx recommonmark
pip install -r dev_requirements.txt
python -m pip install --upgrade pip
pip install .
- name: Test with pytest
Expand Down Expand Up @@ -105,10 +119,17 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v1
id: devcache
with:
path: ~/Library/Caches/pip
key: ${{ runner.os }}-pip-dev-${{ hashFiles('**/dev_requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-dev-
- name: Install
if: steps.cache.outputs.cache-hit != 'true'
run: |
pip install pytest pytest-cov bandit sphinx recommonmark
pip install -r dev_requirements.txt
python -m pip install --upgrade pip
pip install .
- name: Test with pytest
Expand Down
5 changes: 5 additions & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest
pytest-cov
bandit
sphinx
recommonmark

0 comments on commit 00c9ef5

Please sign in to comment.