Skip to content

Commit

Permalink
Merge pull request #3482 from mapfish/fix-ci
Browse files Browse the repository at this point in the history
Fix Python install in workflows
  • Loading branch information
sbrunner authored Oct 11, 2024
2 parents 8b53948 + d1b0868 commit 4a98ee4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/monthly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install --requirement=ci/requirements.txt

- run: .github/monthly-release
6 changes: 4 additions & 2 deletions .github/workflows/rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ jobs:
- run: echo "enablePublishing=true" > gradle.properties
- run: git diff

- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: python3 -m pip install --requirement=ci/requirements.txt

- run: make build

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void testExecute() throws Exception {
List<URI> layerGraphics = (List<URI>) values.getObject("layerGraphics", List.class);
assertEquals(1, layerGraphics.size());

new ImageSimilarity(new File(layerGraphics.get(0)))
.assertSimilarity(getFile(BASE_DIR + "/expectedSimpleImage.png"), 0);
new ImageSimilarity(getFile(BASE_DIR + "/expectedSimpleImage.png"))
.assertSimilarity(new File(layerGraphics.get(0)), 0);
}
}

0 comments on commit 4a98ee4

Please sign in to comment.