diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2023-04-22 10:17:19 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2023-04-22 10:17:19 -0400 |
| commit | dcc68e69e6e464bac20596f6b67125cc1983164a (patch) | |
| tree | 4ca443d50bb8763aa8bb4506410b36e8653d0912 /.github/workflows | |
| parent | gh-32: Add py.typed (diff) | |
| download | taskipy2-dcc68e69e6e464bac20596f6b67125cc1983164a.zip | |
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.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 16 |
1 files changed, 8 insertions, 8 deletions
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 |