Skip to content

Commit

Permalink
Fix modelicafmt overriding CHANGELOG and README (#616)
Browse files Browse the repository at this point in the history
* older version of r2m2

* remove r2m2

* remove r2m2

* 3.12.1

* rpds-py

* do not use precommit action

* do not extract readme and changelog from modelicafmt

* add back in r2m2

* note
  • Loading branch information
nllong authored Jan 13, 2024
1 parent 2f3a6ab commit 2394e76
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 66 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.12"]
python-version: ["3.10", "3.12.1"]
test_env: [python, docs, mypy]
mbl_tag: [v10.0.0]
exclude:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
RUNNER_SYSTEM=$(python -c 'import platform; print(platform.system())')
curl -SLO "https://github.com/urbanopt/modelica-fmt/releases/download/v0.2-pr.2/modelica-fmt_0.2-pr.2_${RUNNER_SYSTEM}_x86_64.tar.gz"
tar xzf modelica-fmt_0.2-pr.2_${RUNNER_SYSTEM}_x86_64.tar.gz
tar --exclude='README.md' --exclude='CHANGELOG.md' -xzf modelica-fmt_0.2-pr.2_${RUNNER_SYSTEM}_x86_64.tar.gz
chmod +x modelicafmt
if [[ $RUNNER_SYSTEM == 'Linux' ]]; then
sudo mv modelicafmt /usr/local/bin/
Expand Down Expand Up @@ -81,9 +81,7 @@ jobs:
if: matrix.test_env == 'python' && matrix.os == 'windows-latest'
run: poetry run pytest tests --doctest-modules -v -m 'not simulation and not compilation and not dymola'
- name: Run pre-commit
uses: pre-commit/[email protected]
with:
extra_args: --all-files
run: poetry run pre-commit run --show-diff-on-failure --color=always --all-files
- name: Run mypy
if: matrix.test_env =='mypy'
run: poetry run mypy --install-types --non-interactive --show-error-codes .
Expand Down
Loading

0 comments on commit 2394e76

Please sign in to comment.