-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30c1ed7
commit d230f3d
Showing
9 changed files
with
62 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Lint | ||
on: [push, pull_request] | ||
env: | ||
BASEDIR: https://raw.githubusercontent.com/open-contracting/standard-maintenance-scripts/main | ||
jobs: | ||
build: | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ubuntu-latest | ||
env: | ||
PAT: ${{ secrets.PAT }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.PAT || github.token }} | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: pip | ||
cache-dependency-path: '**/requirements*.txt' | ||
- id: changed-files | ||
uses: tj-actions/changed-files@v45 | ||
- uses: pre-commit/action@v3.0.1 | ||
continue-on-error: true | ||
with: | ||
extra_args: pip-compile --files ${{ steps.changed-files.outputs.all_changed_files }} | ||
- if: ${{ env.PAT }} | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: '[github-actions] pre-commit autoupdate' | ||
- shell: bash | ||
run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash - | ||
- shell: bash | ||
run: curl -s -S --retry 3 $BASEDIR/tests/script.sh | bash - | ||
- run: pip install -r requirements_test.txt | ||
- env: | ||
STANDARD_MAINTENANCE_SCRIPTS_FILES: requirements_test.in | ||
run: pytest /tmp/test_requirements.py |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ci: | ||
autoupdate_schedule: quarterly | ||
skip: [pip-compile] | ||
repos: | ||
- repo: https://github.com/astral-sh/uv-pre-commit | ||
rev: 0.4.4 | ||
hooks: | ||
- id: pip-compile | ||
name: pip-compile requirements_test.in | ||
args: [requirements_test.in, -o, requirements_test.txt] | ||
files: ^requirements_test\.(in|txt)$ |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
pip-tools | ||
pytest | ||
requests |
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,51 +1,22 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.10 | ||
# by the following command: | ||
# | ||
# pip-compile requirements_test.in | ||
# | ||
build==0.9.0 | ||
# via pip-tools | ||
# This file was autogenerated by uv via the following command: | ||
# uv pip compile requirements_test.in -o requirements_test.txt | ||
certifi==2024.7.4 | ||
# via requests | ||
charset-normalizer==3.1.0 | ||
# via requests | ||
click==8.0.1 | ||
# via pip-tools | ||
exceptiongroup==1.1.1 | ||
# via pytest | ||
idna==3.7 | ||
# via requests | ||
iniconfig==1.1.1 | ||
# via pytest | ||
packaging==20.9 | ||
# via | ||
# build | ||
# pytest | ||
pep517==0.10.0 | ||
# via build | ||
pip-tools==7.3.0 | ||
# via -r requirements_test.in | ||
# via pytest | ||
pluggy==0.13.1 | ||
# via pytest | ||
pyparsing==2.4.7 | ||
# via packaging | ||
pytest==7.3.1 | ||
# via -r requirements_test.in | ||
requests==2.32.0 | ||
requests==2.32.3 | ||
# via -r requirements_test.in | ||
toml==0.10.2 | ||
# via pep517 | ||
tomli==2.0.1 | ||
# via | ||
# build | ||
# pip-tools | ||
# pytest | ||
urllib3==2.2.2 | ||
# via requests | ||
wheel==0.40.0 | ||
# via pip-tools | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# pip | ||
# setuptools |
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