add check that derived levels cover all combinations #46
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: Slow acceptance tests | |
on: | |
push: | |
paths: | |
# Only run this workflow on pushes if this file is modified. | |
- '.github/workflows/acceptance-slow.yml' | |
# Run whenever an acceptance test or the SweetPea library is modified. | |
- 'acceptance/**' | |
- 'sweetpea/**' | |
pull_request: | |
# Always run for pull requests. | |
jobs: | |
run: | |
name: ${{ matrix.os }} || Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-10.15, windows-latest] | |
python-version: ['3.7', '3.8', '3.9'] | |
steps: | |
- name: Checkout SweetPea | |
uses: actions/checkout@v2 | |
with: | |
path: sweetpea | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update pip | |
run: python -m pip install --upgrade pip | |
- name: Set up SweetPea's Python package dependencies | |
run: pip install -r sweetpea/requirements.txt | |
- name: Checkout executables | |
uses: actions/checkout@v2 | |
with: | |
repository: sweetpea-org/unigen-exe | |
path: executables | |
ref: v0.2 | |
- name: Set asset path name | |
shell: bash | |
run: echo "UNIGEN_ASSET_PATH=$(python sweetpea/sweetpea/_internal/core/generate/tools/executables.py --asset-string)" >> $GITHUB_ENV | |
- name: Set executable directory environment variable | |
shell: bash | |
run: echo "UNIGEN_EXE_DIR=$GITHUB_WORKSPACE/executables/$UNIGEN_ASSET_PATH/" >> $GITHUB_ENV | |
- name: Environment variable sanity test | |
shell: bash | |
run: | | |
echo UNIGEN_ASSET_PATH=$UNIGEN_ASSET_PATH | |
echo UNIGEN_EXE_DIR=$UNIGEN_EXE_DIR | |
- name: Run acceptance tests | |
env: | |
UNIGEN_DOWNLOAD_IF_MISSING: no | |
run: python -m pytest sweetpea/acceptance --run-slow |