forked from Arelle/Arelle
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.46 KB
/
test-scripts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Run Integration Test Scripts
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/test-scripts.yml'
- 'arelle/**'
- 'tests/**'
- '**.py'
- '**.pyw'
- 'requirements*.txt'
permissions: {}
jobs:
run-tests:
name: ${{ matrix.os }} - ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-12
- ubuntu-22.04
- windows-2022
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4.2.1
- name: Install Python 3
uses: actions/setup-python@v5.2.0
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
pip install -r requirements-plugins.txt
- name: Run integration tests with pytest
run: |
pytest -s --disable-warnings --all --download-cache --offline --arelle="python arelleCmdLine.py" tests/integration_tests/scripts/test_scripts.py
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v4.4.3
with:
name: ${{ matrix.os }}_${{ matrix.python-version }}_logs
path: '.test/**/*.logfile.*'