Skip to content

Commit

Permalink
feat: add auth_file option to read authentication information for rep…
Browse files Browse the repository at this point in the history
…ositories from a file (#413)

* add option to force usage of fallback_auth
* adapt to new storage backends
* use user-provided --auth-file
* add integration to test auth-files and authentication with private repositories
  • Loading branch information
0xbe7a authored Dec 18, 2023
1 parent 756861e commit fa672b9
Show file tree
Hide file tree
Showing 10 changed files with 229 additions and 129 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.68.0
toolchain: '1.73.0'

- name: Setup Pages
uses: actions/configure-pages@v4
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run_tests:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
fail-fast: false

name: Run tests
Expand All @@ -30,11 +30,13 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.73.0
toolchain: '1.73.0'
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.10.0
# build in release mode so that it's reasonably fast to run the tests
- run: cargo build --release
- run: cargo test -p rust-tests -- --test-threads 1
# - run: pixi run end_to_end_test
- run: cargo test --release -p rust-tests -- --test-threads 1
- run: pixi run end_to_end_test
env:
PREFIX_DEV_READ_ONLY_TOKEN: ${{ secrets.PREFIX_DEV_READ_ONLY_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.73.0
toolchain: '1.73.0'
components: clippy,rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.73.0
toolchain: '1.73.0'
targets: ${{ matrix.target }}

- name: Install musl-gcc
Expand Down
Loading

0 comments on commit fa672b9

Please sign in to comment.