-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use pdm instead of pipenv. (#255)
- Loading branch information
Showing
53 changed files
with
1,649 additions
and
1,230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
name: CI | ||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
jobs: | ||
ci: | ||
if: ${{ !cancelled() && ! failure() }} | ||
needs: dependabot | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
- uses: pdm-project/setup-pdm@v3 | ||
with: | ||
cache: pip | ||
cache: true | ||
python-version: ${{ matrix.python-version }} | ||
- run: env | sort | ||
- run: make dev | ||
|
@@ -28,74 +27,30 @@ jobs: | |
- '3.12' | ||
consistency: | ||
if: ${{ !cancelled() && ! failure() }} | ||
needs: dependabot | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Git | ||
run: | | ||
git config --global user.name github-actions | ||
git config --global user.email [email protected] | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
- uses: pdm-project/setup-pdm@v3 | ||
with: | ||
cache: pip | ||
cache: true | ||
python-version: '3.12' | ||
- run: env | sort | ||
- name: Install copier for template rendering using pipx | ||
run: pipx install copier | ||
- name: Generate the project with the default value | ||
run: | | ||
find . -maxdepth 1 | grep -vE '(\.|template|includes|\.git|copier\.yaml)$' | xargs -I {} rm -r {} | ||
find . -maxdepth 1 | grep -vE '(\.|template|includes|\.git|copier\.yaml|pdm\.lock)$' | xargs -I {} rm -r {} | ||
copier copy -d repo_host_type=gitlab.com -r HEAD -f . . | ||
rm .copier-answers.yml | ||
copier copy -r HEAD -f . . | ||
rm .copier-answers.yml | ||
- run: git diff | ||
- run: git status --porcelain | ||
- run: test -z "$(git status --porcelain)" | ||
dependabot: | ||
if: ${{ github.actor == 'dependabot[bot]' && startsWith(github.head_ref, 'dependabot/pip/') }} | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
- name: Set up Git | ||
run: | | ||
git config --global user.name github-actions | ||
git config --global user.email [email protected] | ||
- name: Set up Python with multiple versions. | ||
uses: actions/setup-python@v5 | ||
with: | ||
cache: pip | ||
python-version: | | ||
3.8 | ||
3.9 | ||
3.10 | ||
3.11 | ||
3.12 | ||
- name: Install pipenv using pipx | ||
run: pipx install pipenv | ||
- name: Generate constraints for all supported Python versions | ||
run: | | ||
CI= PYTHON_VERSION=3.8 make constraints | ||
CI= PYTHON_VERSION=3.9 make constraints | ||
CI= PYTHON_VERSION=3.10 make constraints | ||
CI= PYTHON_VERSION=3.11 make constraints | ||
CI= PYTHON_VERSION=3.12 make constraints | ||
- name: Sync template | ||
run: cp -v constraints/* template/constraints/ | ||
- name: Push changes if applicable | ||
run: | | ||
if [[ -n `git status --porcelain` ]]; then | ||
git commit -a -m "build: Update constraints for dependabot." | ||
git push | ||
fi | ||
name: CI | ||
on: | ||
pull_request: | ||
types: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
"pipx", | ||
"pycache", | ||
"pydantic", | ||
"pyproject", | ||
"pytest", | ||
"Quickstart", | ||
"setuptools", | ||
|
Oops, something went wrong.