Skip to content

Commit

Permalink
railjson_generator: move to 'poetry:2.0'
Browse files Browse the repository at this point in the history
Signed-off-by: Jean SIMARD <[email protected]>
  • Loading branch information
woshilapin committed Feb 13, 2025
1 parent a8ac938 commit 7fab4f3
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 159 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install 'poetry<2.0'
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -226,7 +226,8 @@ jobs:
- name: Generate railjson
run: |
mkdir /tmp/generated_infras
poetry -C python/railjson_generator run python -m railjson_generator /tmp/generated_infras tests/infra-scripts/*.py
cd python/railjson_generator
poetry run python -m railjson_generator /tmp/generated_infras ../../tests/infra-scripts/*.py
- name: Ensure generated infrastructures are up to date
run: diff -r -u tests/data/infras /tmp/generated_infras
Expand All @@ -237,7 +238,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install 'poetry<2.0'
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -248,7 +249,7 @@ jobs:
- name: Install railjson_generator dependencies
run: |
cd python/railjson_generator
poetry install
poetry install --extras=check --extras=dev
- name: Ruff
run: |
Expand Down
1 change: 0 additions & 1 deletion python/railjson_generator/.python-version

This file was deleted.

Loading

0 comments on commit 7fab4f3

Please sign in to comment.