-
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
Showing
6 changed files
with
77 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Check deps | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- setup.py | ||
- requirements.txt | ||
- requirements-dev.txt | ||
|
||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
|
||
jobs: | ||
quality: | ||
name: Checking dependency graph | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-20.04'] | ||
python-version: ['3.8'] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python:v4 | ||
with: | ||
cache: pip | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip3 install -c requirements-dev.txt pip-tools | ||
- name: Check dependency graph | ||
run: | | ||
pip-compile -q --strip-extras | ||
pip-compile -q --strip-extras requirements-dev.in | ||
- name: Verify dependency graph is ok | ||
uses: tj-actions/verify-changed-files@v20 | ||
id: verify-changed-files | ||
with: | ||
files: | | ||
requirements.txt | ||
requirements-dev.txt | ||
- name: Validating graph | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' | ||
run: | | ||
echo "Dependency file(s) changed: ${{ steps.verify-changed-files.outputs.changed_files }}" | ||
git diff | ||
core.setFailed('Please add your new dependencies in setup.py and/or dev-requirements.in then run pip-compile to add them in requirements. (see docs/contribute/development)') |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ services: | |
BASE_IMAGE: focal | ||
|
||
volumes: | ||
- ./src/:/app/src/ | ||
- ./:/app/ | ||
ports: | ||
- "8000:8000" | ||
environment: | ||
|