Skip to content

Commit

Permalink
Bug fix dep checks (#329)
Browse files Browse the repository at this point in the history
* Resolve unintended changes to the way in which requirements files are generated when checking for changes
  • Loading branch information
asset-web authored Nov 6, 2024
1 parent 9168ad2 commit 032bc1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/check-python-dependcies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ jobs:
architecture: 'x64'
- name: Check for package updates
run: |
pip3 install -U pip
pip3 -V
sudo apt-get install -y python3-wheel-whl
pip3 install pip-tools
pip-compile --resolver=backtracking --generate-hashes --reuse-hashes --upgrade --output-file requirements/requirements.txt requirements/requirements.in
pip-compile --resolver=backtracking --generate-hashes --reuse-hashes --upgrade --output-file requirements/test.txt requirements/test.in
pip-compile --resolver=backtracking --generate-hashes --reuse-hashes --upgrade --output-file requirements/dev.txt requirements/dev.in
docker -v
docker login -u ${{ secrets.DOCKER_HUB_USER }} -p "${{ secrets.DOCKER_HUB_PASSWORD }}"
docker run --rm -v $PWD:/srv -w /srv uobristol/temmpo-web bash /srv/entrypoints/update-requirements.sh
- name: git status output
run: |
git status
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USER }}
password: "${{ secrets.DOCKER_HUB_PASSWORD }}"
image_name: ${{ env.IMAGE_NAME }}
image_tag: ${{ github.sha }}
image_tag: ${{ github.sha }},latest
# Build from scratch if a scheduled job
pull_image_and_stages: ${{ github.event_name != 'schedule' }}
push_image_and_stages: docker run ${{ env.IMAGE_NAME }}:${{ github.sha }}
Expand Down

0 comments on commit 032bc1f

Please sign in to comment.