-
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
11 changed files
with
114 additions
and
56 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 |
---|---|---|
|
@@ -3,8 +3,8 @@ name: CI | |
on: | ||
push: | ||
# Avoid duplicate builds on PRs. | ||
branches: | ||
- main | ||
# branches: | ||
# - main | ||
pull_request: | ||
|
||
permissions: | ||
|
@@ -45,12 +45,30 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
builder: ["builder:22", "builder:20"] | ||
builder: ["builder:24", "builder:22", "builder:20"] | ||
arch: ["amd64", "arm64"] | ||
exclude: | ||
- builder: "builder:22" | ||
arch: "arm64" | ||
- builder: "builder:20" | ||
arch: "arm64" | ||
env: | ||
INTEGRATION_TEST_CNB_BUILDER: heroku/${{ matrix.builder }} | ||
INTEGRATION_TEST_BUILDER: heroku/${{ matrix.builder }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
# The beta ARM64 runners don't yet ship with the normal installed tools. | ||
- name: Install Docker and AWS CLI (ARM64 only) | ||
if: matrix.arch == 'arm64' | ||
run: | | ||
sudo apt-get update --error-on=any | ||
sudo apt-get install -y --no-install-recommends acl docker.io docker-buildx unzip | ||
sudo usermod -aG docker $USER | ||
sudo setfacl --modify user:$USER:rw /var/run/docker.sock | ||
curl https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip -o awscliv2.zip | ||
unzip awscliv2.zip | ||
sudo ./aws/install | ||
rm -rf awscliv2.zip ./aws/ | ||
- name: Install musl-tools | ||
run: sudo apt-get install musl-tools --no-install-recommends | ||
- name: Update Rust toolchain | ||
|
@@ -62,13 +80,13 @@ jobs: | |
- name: Install Pack CLI | ||
uses: buildpacks/github-actions/[email protected] | ||
- name: Pull builder image | ||
run: docker pull ${{ env.INTEGRATION_TEST_CNB_BUILDER }} | ||
run: docker pull ${{ env.INTEGRATION_TEST_BUILDER }} | ||
# The integration tests are annotated with the `ignore` attribute, allowing us to run | ||
# only those and not the unit tests, via the `--ignored` option. On the latest stack | ||
# we run all integration tests, but on older stacks we only run stack-specific tests. | ||
- name: Run integration tests (all tests) | ||
if: matrix.builder == 'builder:22' | ||
if: matrix.builder == 'builder:24' | ||
run: cargo test --locked -- --ignored --test-threads 5 | ||
- name: Run integration tests (stack-specific tests only) | ||
if: matrix.builder != 'builder:22' | ||
if: matrix.builder != 'builder:24' | ||
run: cargo test --locked -- --ignored --test-threads 5 'python_version_test::' |
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
4 changes: 2 additions & 2 deletions
4
tests/fixtures/django_staticfiles_legacy_django/requirements.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# This is the oldest Django version that works on Python 3.9 (which is the | ||
# This is the oldest Django version that works on Python 3.10 (which is the | ||
# oldest Python that is available on all of our supported builders). | ||
Django==1.8.19 | ||
Django==2.1.15 |
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 +1 @@ | ||
python-3.9.19 | ||
python-3.10.14 |
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
Oops, something went wrong.