build(deps): bump docker/build-push-action from 6.10.0 to 6.12.0 #62
Workflow file for this run
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
name: Run Xbrl Conformance Suites | |
on: pull_request_target | |
jobs: | |
find-tests: | |
runs-on: ubuntu-22.04 | |
outputs: | |
matrix: ${{ steps.build-test-matrix.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
with: | |
persist-credentials: false | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- id: build-test-matrix | |
run: | | |
printf matrix= >> $GITHUB_OUTPUT | |
basename -s .py tests/integration_tests/validation/conformance_suite_configurations/*.py | grep -v '^efm' | jq -Rsc 'split("\n") | map(select(length > 0))' | tee -a $GITHUB_OUTPUT | |
run-conformance-suite: | |
name: ${{ matrix.test }} - ${{ matrix.os }} - ${{ matrix.python-version }} | |
needs: find-tests | |
permissions: read-all | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-22.04 | |
python-version: | |
- '3.11' | |
test: ${{ fromJson(needs.find-tests.outputs.matrix) }} | |
include: | |
- os: windows-2022 | |
python-version: '3.7' | |
test: xbrl_2_1 | |
- os: macos-12 | |
python-version: '3.7' | |
test: xbrl_2_1 | |
- os: ubuntu-22.04 | |
python-version: '3.7' | |
test: xbrl_2_1 | |
- os: windows-2022 | |
python-version: '3.8' | |
test: xbrl_2_1 | |
- os: macos-12 | |
python-version: '3.8' | |
test: xbrl_2_1 | |
- os: ubuntu-22.04 | |
python-version: '3.8' | |
test: xbrl_2_1 | |
- os: windows-2022 | |
python-version: '3.9' | |
test: xbrl_2_1 | |
- os: macos-12 | |
python-version: '3.9' | |
test: xbrl_2_1 | |
- os: ubuntu-22.04 | |
python-version: '3.9' | |
test: xbrl_2_1 | |
- os: windows-2022 | |
python-version: '3.10' | |
test: xbrl_2_1 | |
- os: macos-12 | |
python-version: '3.10' | |
test: xbrl_2_1 | |
- os: ubuntu-22.04 | |
python-version: '3.10' | |
test: xbrl_2_1 | |
- os: windows-2022 | |
python-version: '3.11' | |
test: xbrl_2_1 | |
- os: macos-12 | |
python-version: '3.11' | |
test: xbrl_2_1 | |
environment: integration-tests | |
steps: | |
- name: Download XBRL validation config | |
if: ${{ startsWith(matrix.os, 'ubuntu') }} | |
run: | | |
mkdir -p "$XDG_CONFIG_HOME/arelle/cache" | |
curl -L "${{ secrets.XBRL_VALIDATION_CONFIG_URL }}" -o config.zip | |
unzip -d "$XDG_CONFIG_HOME/arelle/cache" config.zip 'http/*' 'https/*' | |
rm config.zip | |
- name: Download XBRL validation config | |
if: ${{ startsWith(matrix.os, 'macos') }} | |
run: | | |
mkdir -p ~/Library/Caches/Arelle | |
curl -L "${{ secrets.XBRL_VALIDATION_CONFIG_URL }}" -o config.zip | |
unzip -d ~/Library/Caches/Arelle config.zip 'http/*' 'https/*' | |
rm config.zip | |
- name: Download XBRL validation config | |
if: ${{ startsWith(matrix.os, 'windows') }} | |
run: | | |
mkdir -p $env:LOCALAPPDATA\Arelle\cache | |
curl "${{ secrets.XBRL_VALIDATION_CONFIG_URL }}" -o config.zip | |
7z x config.zip -o"$env:LOCALAPPDATA\Arelle\cache" 'http/*' 'https/*' | |
rm config.zip | |
- uses: actions/checkout@v4.2.2 | |
with: | |
persist-credentials: false | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Checkout EdgarRenderer | |
if: ${{ matrix.test == 'efm_current' }} | |
uses: actions/checkout@v4.2.2 | |
with: | |
repository: Arelle/EdgarRenderer | |
path: arelle/plugin/EdgarRenderer | |
- name: Install Python 3 | |
uses: actions/setup-python@v5 | |
with: | |
cache: 'pip' | |
check-latest: true | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install -r requirements-dev.txt | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4.0.2 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | |
aws-region: us-east-1 | |
- name: Download from S3 | |
run: aws s3 sync s3://arelle tests/resources | |
- name: Run integration tests with pytest | |
run: pytest -s --disable-warnings --offline --name ${{ matrix.test }} tests/integration_tests/validation/test_conformance_suites.py |