Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin versions on workflows #2025

Merged
merged 1 commit into from Dec 11, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/constraints.txt
@@ -0,0 +1,3 @@
pip==22.3.1
poetry==1.2.2
virtualenv==20.17.1
14 changes: 12 additions & 2 deletions .github/workflows/integration.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
python-version: ["3.9"]

steps:
- uses: actions/checkout@v2
Expand All @@ -25,11 +25,21 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version

- name: Install Poetry
run: |
python -m pip install --upgrade pip
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
python -m pip install --upgrade poetry
poetry --version
poetry install

- name: Install dependencies
run: poetry install

- name: Test integration
run: ./scripts/test_integration.sh
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
python-version: ["3.9"]

steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -48,10 +48,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version

- name: Install Poetry
run: |
python -m pip install --upgrade pip
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
python -m pip install --upgrade poetry
poetry --version
poetry install

- name: Install dependencies
run: poetry install
Expand Down