remove built docs #73
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: Fast acceptance tests | |
on: | |
push: | |
paths: | |
# Run whenever this file is modified. | |
- '.github/workflows/acceptance-fast.yml' | |
# Run if the requirements are updated, to ensure they're correct. | |
- 'requirements.txt' | |
# Run whenever an acceptance test or the SweetPea library is modified. | |
- 'acceptance/**' | |
- 'sweetpea/**' | |
# pull_request: | |
# Never run for pull requests. We use the slow acceptance tests for those. | |
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 |