Skip to content

Commit

Permalink
re-enable and update the Source Compatiblity Suite GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Oct 18, 2024
1 parent df33ab8 commit 2ee8c64
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 37 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

0 comments on commit 2ee8c64

Please sign in to comment.