Skip to content

Commit

Permalink
Upgrade CI dependencies (#764)
Browse files Browse the repository at this point in the history
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

Most of our CI dependencies were outdated, so I upgraded them(As commit `Upgrade CI dependencies`)
And, I set the `python-version` in `setup-python` explicitly for the v4 of `setup-python` need.

Pull Request resolved: #764

Test Plan: All of the warnings and errors about Action configuration were fixed.

Reviewed By: grievejia

Differential Revision: D47970135

Pulled By: connernilsen

fbshipit-source-id: c21631b5f06022b43dc07b646e8153c1e879a580
  • Loading branch information
WangGithubUser authored and facebook-github-bot committed Aug 2, 2023
1 parent 127c5eb commit 3884a88
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install pre-commit
run: pip install -r requirements-dev.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
python-version: [3.6]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build the Website
run: |
cd documentation/website
Expand All @@ -26,7 +26,7 @@ jobs:
run: echo "The time was ${{ steps.build.outputs.time }}"
- name: Deploy
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/pyre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install Dependencies
run: |
Expand All @@ -30,13 +32,13 @@ jobs:
pyre --output=sarif check > sarif.json
- name: Expose SARIF Results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: SARIF Results
path: sarif.json

- name: Upload SARIF Results
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: sarif.json

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pysa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install Dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
python: [3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox
Expand Down

0 comments on commit 3884a88

Please sign in to comment.