Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into feat/add-pytests-and-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvehed authored May 21, 2024
2 parents bcf0c37 + 4a4cd0b commit 6539517
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 29 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pytests-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
Expand All @@ -23,7 +23,7 @@ jobs:
poetry run coverage run -m pytest
poetry run coverage report
- name: Upload coverage report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: htmlcov/
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.12'

Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/semgrep.yml

This file was deleted.

12 changes: 9 additions & 3 deletions .github/workflows/update-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.12'

Expand All @@ -40,10 +40,16 @@ jobs:
- name: Export dev-requirements.txt
run: poetry export --without-hashes --with dev -f requirements.txt --output dev-requirements.txt

- name: Check for changes
id: check_changes
run: |
git add requirements.txt dev-requirements.txt
git diff --cached --exit-code || echo "Changes detected" > changes_detected.txt
- name: Commit and Push changes
if: steps.check_changes.outputs.changes_detected
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add requirements.txt dev-requirements.txt
git commit -m "Update requirements files"
git push

0 comments on commit 6539517

Please sign in to comment.