Skip to content

Commit

Permalink
Try to cache and using different versions
Browse files Browse the repository at this point in the history
  • Loading branch information
frej committed Dec 26, 2023
1 parent 6842ecb commit 07d87f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/requirements-earliest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mercurial==6.1.4
2 changes: 2 additions & 0 deletions .github/requirements-latest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mercurial

8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ jobs:
with:
python-version: '3.5.x'
check-latest: true
cache: 'pip'
cache-dependency-path: '**/requirements-earliest.txt'

- name: Report selected version
run: echo '${{ steps.earliest.outputs.python-version }}'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mercurial
pip install -r .github/requirements-earliest.txt
- name: Look for hg
run: hg --version
Expand All @@ -53,14 +55,16 @@ jobs:
with:
python-version: '3.x'
check-latest: true
cache: 'pip'
cache-dependency-path: '**/requirements-latest.txt'

- name: Report selected version
run: echo '${{ steps.latest.outputs.python-version }}'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mercurial
pip install -r .github/requirements-latest.txt
- name: Look for hg
run: hg --version
Expand Down

0 comments on commit 07d87f9

Please sign in to comment.