Skip to content

Commit

Permalink
Merge pull request #59 from mariuzka/le/fix-documentation-workflow
Browse files Browse the repository at this point in the history
Le/fix documentation workflow
  • Loading branch information
mariuzka authored Aug 8, 2024
2 parents bcad199 + 46f5772 commit d80f338
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docs_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@ jobs:
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v3
- name: Set up python 3.10
- name: Set up python 3.11
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
#----------------------------------------------
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1
with:
# circumvent bug python-poetry/poetry#7694 in version 1.4.1
version: 1.5.1
version: 1.8.2
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
Expand Down Expand Up @@ -65,7 +64,6 @@ jobs:
# deploy to gh-pages
#----------------------------------------------
- name: Deploy documentation
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1
with:
# circumvent bug python-poetry/poetry#7694 in version 1.4.1
version: 1.4.0
version: 1.8.2
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/test_location_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def split(self, agent):
assert len(model.locations) == 3
assert len(model.agents) == 6
for location in model.locations:
if len(location.agents) == "A":
if location.agents[0].status == "A":
assert len(location.agents) == 2
assert all(agent.status == "A" for agent in location.agents)
if location.agents[0].status == "B":
Expand Down

0 comments on commit d80f338

Please sign in to comment.