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: Update github actions versions #1504

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 45 additions & 33 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
poetry config installer.modern-installation false

- name: Set up Python 3.12
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'poetry'
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:

- uses: actions/checkout@v4
- uses: asdf-vm/actions/setup@v3
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
Expand All @@ -87,7 +87,7 @@ jobs:
poetry config installer.modern-installation false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
poetry run poe compile_contracts v1

- name: Upload contracts artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: contract-artifacts
path: starknet_py/tests/e2e/mock/
Expand All @@ -149,12 +149,12 @@ jobs:
- uses: actions/checkout@v4

- name: Download contracts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: contract-artifacts
path: starknet_py/tests/e2e/mock/

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
Expand All @@ -168,7 +168,7 @@ jobs:
poetry config installer.modern-installation false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
Expand Down Expand Up @@ -241,7 +241,9 @@ jobs:
poetry run coverage xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

# ---------------------------------------------------------- #
# ..................RUN-TESTS-ON-NETWORKS................... #
Expand All @@ -261,12 +263,12 @@ jobs:
- uses: actions/checkout@v4

- name: Download contracts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: contract-artifacts
path: starknet_py/tests/e2e/mock/

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
Expand All @@ -280,7 +282,7 @@ jobs:
poetry config installer.modern-installation false

- name: Set up Python 3.12
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'poetry'
Expand Down Expand Up @@ -309,7 +311,9 @@ jobs:
poetry run coverage xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

# ---------------------------------------------------------- #
# ....................RUN-TESTS-WINDOWS..................... #
Expand All @@ -333,12 +337,12 @@ jobs:
toolchain: 1.79.0 # Doesn't work with "stable"

- name: Download contracts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: contract-artifacts
path: starknet_py/tests/e2e/mock/

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
Expand Down Expand Up @@ -367,7 +371,7 @@ jobs:
poetry config installer.modern-installation false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
Expand All @@ -392,7 +396,9 @@ jobs:
poetry run coverage xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

# ---------------------------------------------------------- #
# .....................RUN-DOCS-TESTS....................... #
Expand All @@ -410,12 +416,12 @@ jobs:
- uses: actions/checkout@v4

- name: Download contracts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: contract-artifacts
path: starknet_py/tests/e2e/mock/

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
Expand All @@ -429,7 +435,7 @@ jobs:
poetry config installer.modern-installation false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
Expand All @@ -455,11 +461,13 @@ jobs:
poetry run coverage xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

# ---------------------------------------------------------- #
# .................RUN-DOCS-TESTS-WINDOWS................... #
# ---------------------------------------------------------- #
# ---------------------------------------------------------- #
# .................RUN-DOCS-TESTS-WINDOWS................... #
# ---------------------------------------------------------- #

run-docs-tests-windows:
if: ${{ github.event_name != 'pull_request' }}
Expand All @@ -469,10 +477,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.12" ]
python-version: ["3.8", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@dc6353516c68da0f06325f42ad880f76a5e77ec9

- name: Setup Rust
uses: dtolnay/rust-toolchain@dc6353516c68da0f06325f42ad880f76a5e77ec9
with:
toolchain: 1.79.0 # Doesn't work with "stable"

Expand All @@ -482,10 +492,11 @@ jobs:
name: contract-artifacts
path: starknet_py/tests/e2e/mock/

- uses: actions/setup-python@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: 'pip'
python-version: ${{ matrix.python-version }}
cache: pip

# ====================== SETUP PYTHON ====================== #

Expand All @@ -496,7 +507,7 @@ jobs:
poetry config installer.modern-installation false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
Expand Down Expand Up @@ -528,9 +539,10 @@ jobs:
poetry run poe test_ci_docs_v2
poetry run poe test_ci_docs_v1

- name: Generate coverage in XML
run: |
- name: Generate coverage in XML
run: |
poetry run coverage xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

Loading