Skip to content

Commit

Permalink
build: drop support for Python 3.6 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagxi authored Jan 4, 2024
1 parent 965e233 commit 3b96a05
Show file tree
Hide file tree
Showing 6 changed files with 2,043 additions and 895 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
os: [ubuntu-18.04, ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
os: [ubuntu-20.04, ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
requirements: ['latest', 'minimal']

steps:
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Install poetry
run: |
pip install -U pip
curl -sSL "https://install.python-poetry.org" | python -
curl -sSL "https://install.python-poetry.org" | python - --version 1.5.1
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Set up cache
uses: actions/cache@v2
Expand All @@ -42,7 +42,7 @@ jobs:
run: |
poetry config virtualenvs.in-project true
poetry run pip install -U pip
poetry install
poetry install --with codestyle,test,docs
- name: Install latest dependencies
if: ${{ matrix.requirements == 'latest' }}
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install poetry
run: |
pip install -U pip
curl -sSL "https://install.python-poetry.org" | python -
curl -sSL "https://install.python-poetry.org" | python - --version 1.5.1
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Set up cache
uses: actions/cache@v2
Expand All @@ -40,7 +40,7 @@ jobs:
run: |
poetry config virtualenvs.in-project true
poetry run pip install -U pip
poetry install
poetry install --with codestyle,test,docs
- name: check codestyle
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install poetry
run: |
pip install -U pip
curl -sSL "https://install.python-poetry.org" | python -
curl -sSL "https://install.python-poetry.org" | python - --version 1.5.1
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Set up cache
uses: actions/cache@v2
Expand All @@ -35,7 +35,7 @@ jobs:
run: |
poetry config virtualenvs.in-project true
poetry run pip install -U pip
poetry install
poetry install --with codestyle,test,docs
- name: make docs
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install poetry
run: |
pip install -U pip
curl -sSL "https://install.python-poetry.org" | python -
curl -sSL "https://install.python-poetry.org" | python - --version 1.5.1
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Set up cache
uses: actions/cache@v2
Expand Down Expand Up @@ -60,18 +60,18 @@ jobs:
- name: Install poetry
run: |
pip install -U pip
curl -sSL "https://install.python-poetry.org" | python -
curl -sSL "https://install.python-poetry.org" | python - --version 1.5.1
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Set up cache
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
key: venv-ubuntu-latest-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry run pip install -U pip
poetry install
poetry install --with codestyle,test,docs
- name: make docs
run: |
Expand Down
Loading

0 comments on commit 3b96a05

Please sign in to comment.