Skip to content

Commit

Permalink
Fix Python versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar authored and alinelena committed Feb 26, 2024
1 parent 2ae3869 commit a100b69
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
run: pipx install poetry

- name: Install python dependencies
run: |
poetry env use ${{ matrix.python-version }}
poetry install --with dev
- name: Run test suite
Expand Down Expand Up @@ -53,16 +54,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install poetry
run: pipx install poetry

- name: Install python dependencies
run: poetry install --with docs
run: |
poetry env use 3.11
poetry install --with docs
- name: Build docs
run: cd docs && poetry run make
Expand All @@ -73,16 +77,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install poetry
run: pipx install poetry

- name: Install python dependencies
run: poetry install --with pre-commit,docs,dev
run: |
poetry env use 3.11
poetry install --with pre-commit,docs,dev
- name: Run pre-commit
run: |
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish-on-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install poetry
run: pipx install poetry

- name: Build project for distribution
run: poetry build
run: |
poetry env use 3.11
poetry build
- name: Check Version
id: check-version
Expand Down

0 comments on commit a100b69

Please sign in to comment.