Skip to content

Commit

Permalink
Eager updating in main workflow future config
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Feb 21, 2022
1 parent e8dad9b commit 1d172dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- os: ubuntu-latest
python-version: '3.10'
constraints: '--constraint constraints-future.txt'
upgrade: '--upgrade --upgrade-strategy=eager'

steps:
- uses: actions/checkout@v2
Expand All @@ -71,10 +72,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
env:
pip_options: ${{ matrix.upgrade }} ${{ matrix.constraints }}
run: |
# strict dependency resolution added in pip 20.3
python -m pip install --upgrade 'pip>=20.3'
pip install -e '.[isort,test]' ${{ matrix.constraints }}
pip install ${pip_options} -e '.[isort,test]'
- name: Test with pytest
run: |
pytest

0 comments on commit 1d172dc

Please sign in to comment.