Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all deprecation warnings in Rust and Upload actions #821

Merged
merged 7 commits into from
Mar 10, 2023

Conversation

IvanIsCoding
Copy link
Collaborator

@IvanIsCoding IvanIsCoding commented Feb 21, 2023

Closes #719

We switch the Github Actions to install Rust as actions-rs/toolchain is unmaintained (actions-rs/toolchain#221)

We also bump upload-artifact to v3, fixing all the remaining warnings

@coveralls
Copy link

coveralls commented Feb 21, 2023

Pull Request Test Coverage Report for Build 4379252718

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 97.118%

Files with Coverage Reduction New Missed Lines %
src/shortest_path/all_pairs_bellman_ford.rs 1 98.88%
Totals Coverage Status
Change from base Build 4378686226: 0.02%
Covered Lines: 13916
Relevant Lines: 14329

💛 - Coveralls

@IvanIsCoding IvanIsCoding changed the title Switch to dtolnay/rust-toolchain Fix all deprecation warnings in Rust and Upload actions Feb 21, 2023
@IvanIsCoding
Copy link
Collaborator Author

IvanIsCoding commented Feb 21, 2023

This is failing until #820 is merged (as any PR, really) but should be good to go

@@ -77,12 +75,10 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.platform.python-architecture }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this master while other jobs use stable below?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this Github action is a little bit funny because you can specify the version in the @. @stable installs Rust stable, @1.57.1 installs 1.57.1 etc. But if you want to have the version as an input (like from the matrix we have), the author suggests using the toolchain field: https://github.com/dtolnay/rust-toolchain#inputs

@mtreinish mtreinish added the automerge Queue a approved PR for merging label Mar 9, 2023
@mtreinish mtreinish removed the automerge Queue a approved PR for merging label Mar 9, 2023
@IvanIsCoding
Copy link
Collaborator Author

#401 added a new step using the old Github action so I need to update that

@IvanIsCoding IvanIsCoding added the automerge Queue a approved PR for merging label Mar 9, 2023
@mergify mergify bot merged commit baffac5 into Qiskit:main Mar 10, 2023
@IvanIsCoding IvanIsCoding deleted the swap-rust-action branch March 20, 2023 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Queue a approved PR for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Deprecation Warnings in Github Actions
3 participants