Skip to content

Commit

Permalink
Do not get all available versions when using latest (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger authored Mar 4, 2024
1 parent 284f2bf commit 8305fed
Show file tree
Hide file tree
Showing 14 changed files with 691 additions and 5,345 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ concurrency:
cancel-in-progress: true

jobs:
test-rye-sync:
test-latest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14, oracle-aarch64]
enable-cache: [true, false]
steps:
- uses: actions/checkout@v4
- name: Should not be on path
Expand All @@ -30,7 +31,9 @@ jobs:
- name: Setup rye
uses: ./
with:
working-directory: __tests__/fixtures/rye-project
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-cache: ${{ matrix.enable-cache }}
- run: rye sync
working-directory: __tests__/fixtures/rye-project
- name: Rye path is not added to .profile
Expand All @@ -41,7 +44,7 @@ jobs:
else
exit 1
fi
test-without-github-token:
test-latest-without-github-token:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install version which modidies path
- name: Install version which modifies path
uses: ./
with:
version: '0.21.0'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test('checksum should match', async () => {
const validChecksum =
'f3da96ec7e995debee7f5d52ecd034dfb7074309a1da42f76429ecb814d813a3'
const filePath = '__tests__/fixtures/checksumfile'
const isValid = await utils.validateCheckSum(filePath, validChecksum)
const isValid = await utils.validateFileCheckSum(filePath, validChecksum)
expect(isValid).toBeTruthy()
})

Expand Down
65 changes: 40 additions & 25 deletions dist/save-cache/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/save-cache/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 8305fed

Please sign in to comment.