Skip to content

Commit

Permalink
Optimize py-test action
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed May 22, 2021
1 parent 239599b commit b907c99
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/py-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ jobs:
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
if [ -f requirements-test.txt ]; then
pip install -r requirements-test.txt
elif [ -f requirements-dev.txt ]; then
# Prefer requirements-dev.txt
if [ -f requirements-dev.txt ]; then
pip install -r requirements-dev.txt
elif [ -f requirements-test.txt ]; then
pip install -r requirements-test.txt
elif [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
Expand Down Expand Up @@ -75,7 +76,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.9] # py38 was processed on lint job
python-version: [3.9] # py38 was processed on lint job stage
experimental: [false]
include:
- python-version: '3.10-dev'
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
# Prefer requirements-test.txt
if [ -f requirements-test.txt ]; then
pip install -r requirements-test.txt
elif [ -f requirements-dev.txt ]; then
Expand Down

0 comments on commit b907c99

Please sign in to comment.