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

Re-enable and update the Source Compatiblity Suite GitHub action #3632

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
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
24 changes: 24 additions & 0 deletions .github/workflows/compat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Source Compatibility Suite
on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
inputs:

jobs:
source-compat:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
working-directory: compat
run: pip3 install -r requirements.txt
- name: Run
working-directory: compat
run: "python3 main.py"
34 changes: 0 additions & 34 deletions .github/workflows/compat.yaml.disabled

This file was deleted.

4 changes: 2 additions & 2 deletions compat/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def run(self, working_dir: Path, prepare: bool, cadence_version: Optional[str],
flowgo_replacement = f'github.com/onflow/flow-go@{flowgo_version}'
else:
# default: use the newest version of flow-go available
flowgo_replacement = f'github.com/onflow/flow-go@latest'
flowgo_replacement = 'github.com/onflow/flow-go@latest'

with cwd(working_dir / self.path):
if prepare:
Expand Down Expand Up @@ -87,7 +87,7 @@ def from_dict(cls, data: Dict):

def _clone(self, working_dir: Path):
if working_dir.exists():
for root, dirs, files in os.walk(working_dir):
for root, dirs, files in os.walk(working_dir):
for dir in dirs:
os.chmod(os.path.join(root, dir), stat.S_IRUSR | stat.S_IWUSR)
for file in files:
Expand Down
2 changes: 1 addition & 1 deletion compat/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
click==7.1.2
coloredlogs==14.0
dacite==1.5.1
PyYAML==5.4
PyYAML>=6.0.1
typing-extensions==3.7.4.3
4 changes: 2 additions & 2 deletions compat/suite/flow-core-contracts.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: Flow Core Contracts
maintainers:
- bastian@dapperlabs.com
- joshua.hannan@dapperlabs.com
- bastian.mueller@flowfoundation.org
- joshua.hannan@flowfoundation.org
url: https://github.com/onflow/flow-core-contracts.git
branch: master
go_tests:
Expand Down
4 changes: 2 additions & 2 deletions compat/suite/flow-ft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: Flow Fungible Token
maintainers:
- bastian@dapperlabs.com
- joshua.hannan@dapperlabs.com
- bastian.mueller@flowfoundation.org
- joshua.hannan@flowfoundation.org
url: https://github.com/onflow/flow-ft.git
branch: master
go_tests:
Expand Down
4 changes: 2 additions & 2 deletions compat/suite/flow-nft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: Flow Non-Fungible Token
maintainers:
- bastian@dapperlabs.com
- joshua.hannan@dapperlabs.com
- bastian.mueller@flowfoundation.org
- joshua.hannan@flowfoundation.org
url: https://github.com/onflow/flow-nft.git
branch: master
go_tests:
Expand Down
4 changes: 2 additions & 2 deletions compat/suite/nba-smart-contracts.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: NBA Top Shot
maintainers:
- bastian@dapperlabs.com
- joshua.hannan@dapperlabs.com
- bastian.mueller@flowfoundation.org
- joshua.hannan@flowfoundation.org
url: https://github.com/dapperlabs/nba-smart-contracts.git
branch: master
go_tests:
Expand Down
Loading