Skip to content

Commit

Permalink
Update poetry to 1.8.0 and update versions of actions (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzuckerm authored Feb 26, 2024
1 parent b70d9c8 commit 0fc4cb6
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 164 deletions.
6 changes: 4 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,12 @@ To run the tests locally, **you will need the following dependencies**:
automatically generate consistent, stable build/test environments.
- **Python 3.8+**: our build system is constructed with Python given that
testing is built with glotter, a Python testing library that leverages docker.
- **Poetry**: our build system is managed and versioned using Poetry.
- **Poetry**: our build system is managed and versioned using Poetry. Make sure
to use version **1.8.0** or later. If you are using an older version, please
update to the latest.

With all three installed, the remaining dependencies can be installed using
`poetry install --no-root`. After that, running the tests is a matter of running
`poetry install`. After that, running the tests is a matter of running
glotter directly as follows:

```sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ jobs:
fail-fast: true
matrix:
python-version: ["3.11"]
poetry-version: ["1.7.1"]
poetry-version: ["1.8.0"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

- name: Run Poetry Image
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Install Dependencies
run: poetry install --no-root
run: poetry install

- name: Generate READMEs
run: poetry run ronbun . --log=DEBUG
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@ jobs:
fail-fast: true
matrix:
python-version: ["3.11"]
poetry-version: ["1.7.1"]
poetry-version: ["1.8.0"]
os: [ubuntu-latest]
num_batches: [6]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

- name: Run Poetry Image
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Install Dependencies
run: poetry install --no-root
run: poetry install

- name: Download Docker images, Test All Sample Programs, Remove Docker Images
run: poetry run glotter batch ${{ matrix.num_batches }} --parallel --remove
Loading

0 comments on commit 0fc4cb6

Please sign in to comment.