Skip to content

Commit

Permalink
Clean up GitHub Actions dependency cache (#1630)
Browse files Browse the repository at this point in the history
Add .github/dependabot.yml
  • Loading branch information
trevorbaca committed Jan 24, 2025
1 parent 452c686 commit 6bad5a5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
25 changes: 11 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
pull_request:
branches: [ main ]


jobs:
ci-tests:
runs-on: ubuntu-latest
Expand All @@ -20,7 +19,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -54,22 +53,21 @@ jobs:
- name: Install LilyPond
run: |
set -e
lilypond_archive="lilypond-${LILYPOND_VERSION}-linux-x86_64.tar.gz"
base_url="https://gitlab.com/lilypond/lilypond/-/releases"
lilypond_url="${base_url}/v${LILYPOND_VERSION}/downloads/${lilypond_archive}"
echo "Downloading LilyPond from: ${lilypond_url}"
cd /tmp || { echo "Failed to change directory to /tmp"; exit 1; }
cd /tmp || { echo "Failed to change directory to /tmp"; }
wget -q --tries=3 --timeout=30 ${lilypond_url} || \
{ echo "Download failed after 3 attempts"; exit 1; }
{ echo "Download failed after 3 attempts"; }
if [ ! -f "${lilypond_archive}" ]; then
echo "File download failed!" >&2
exit 1
fi
checksum="3e837e811aaa72323863925f0a4b5bd1aff1ed9b997e6c70dbe5c008e47872e7"
echo "${checksum} ${lilypond_archive}" > checksum.txt
if ! sha256sum -c checksum.txt --status; then
echo "Checksum verification failed!" >&2
exit 1
fi
rm checksum.txt
echo "Checksum verified successfully."
Expand All @@ -78,7 +76,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip coverage defusedxml
python -m pip install --upgrade pip
python -m pip install -r ci/requirements.txt
- name: Log dependencies
Expand All @@ -94,15 +92,14 @@ jobs:
run: |
python -m pip install .[dev]
python -c "import abjad; print(abjad.Configuration().configuration_file_path)"
scr/prime-parser-tables
python scr/prime-parser-tables
- name: Run checks (parallel)
- name: Run checks
run: |
make black-check &
make flake8 &
make isort-check &
make mypy &
wait
make black-check
make flake8
make isort-check
make mypy
- name: Run tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
coverage
defusedxml
black==24.10.0
flake8==7.1.1
isort==5.13.2
Expand Down

0 comments on commit 6bad5a5

Please sign in to comment.