From dcc68e69e6e464bac20596f6b67125cc1983164a Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 22 Apr 2023 10:17:19 -0400 Subject: Add requirements.txt for py36 The latest version of Poetry doesn't support py36. Furthermore, the lockfile format is different between the version of poetry supported with py36 and the latest poetry version. This is a workaround by exporting the dependencies to a requirements.txt file on CI for py36. I tried using the lowest common denomenator (the old version of poetry), but the dependency resolver doesn't seem to be as good. It never resolves with the current pyproject.toml updates. However, it does so right away with the updated poetry version. Since we're planning on removing py36 in the near future, this tradeoff seems okay in the meantime. --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9aa4a5..b375c08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,11 +3,7 @@ name: Taskipy Test CI -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [push, pull_request] jobs: build: @@ -24,16 +20,20 @@ jobs: runs-on: ${{ matrix.os || 'ubuntu-latest' }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install Poetry run: | python -m pip install --upgrade pip pip install poetry - - name: Install dependencies + - name: Install Dependencies (Python 3.6) + if: ${{ matrix.python-version == 3.6 }} + run: poetry run pip install -r .github/requirements-py36-ci.txt + - name: Install Dependencies (Python 3.7+) + if: ${{ matrix.python-version != 3.6 }} run: poetry install - name: Test run: poetry run task test -- cgit v1.2.3