Skip to content

Commit

Permalink
Merge pull request #3632 from onflow/bastian/reenable-compat-suite-ac…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
turbolent authored Oct 21, 2024
2 parents d96a90d + e020579 commit 553c7ee
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 45 deletions.
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

0 comments on commit 553c7ee

Please sign in to comment.