Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,27 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- name: Load cached .local
uses: actions/cache@v3
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
path: /home/runner/.local
key: dotlocal-${{ matrix.python-version }}-${{ hashFiles('.github/workflows') }}

- name: Install poetry
run: pipx install poetry
run: |
curl -sSL https://install.python-poetry.org/ | python -
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is -sSL supposed to be camelCase?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so yes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s, S, and L are all independent flags.

More details are here: https://curl.se/docs/manpage.html

echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Retrieve poetry dependencies from cache
- name: Install Python + Retrieve Poetry dependencies from cache
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Display Python version
run: |
python -c "import sys; print(sys.version)"

- name: Install poetry dependencies
run: poetry install

Expand Down
47 changes: 28 additions & 19 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,34 @@ jobs:
name: Lint and type-check
runs-on: ubuntu-latest

env:
PYTHON_VERSION: "3.10"

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python 3.x
uses: actions/setup-python@v2
- name: Load cached .local
uses: actions/cache@v3
with:
python-version: '3.x'

- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
path: /home/runner/.local
key: dotlocal-${{ env.PYTHON_VERSION }}-${{ hashFiles('.github/workflows') }}

- name: Install poetry
run: pipx install poetry
run: |
curl -sSL https://install.python-poetry.org/ | python -
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Retrieve poetry dependencies from cache
- name: Install Python + Retrieve Poetry dependencies from cache
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'poetry'

- name: Display Python version
run: |
python -c "import sys; print(sys.version)"

- name: Install poetry dependencies
run: poetry install

Expand All @@ -56,24 +62,27 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- name: Load cached .local
uses: actions/cache@v3
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
path: /home/runner/.local
key: dotlocal-${{ matrix.python-version }}-${{ hashFiles('.github/workflows') }}

- name: Install poetry
run: pipx install poetry
run: |
curl -sSL https://install.python-poetry.org/ | python -
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Retrieve poetry dependencies from cache
- name: Install Python + Retrieve Poetry dependencies from cache
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Display Python version
run: |
python -c "import sys; print(sys.version)"

- name: Install poetry dependencies
run: poetry install

Expand Down