Test case with 'post()' whn recording both bins and snapshots. #320
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: test | |
# Test oups. | |
on: | |
push: | |
branches: "*" | |
# pull_request: | |
# branches: main | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
# Checks-out repository under $GITHUB_WORKSPACE, so the job can access it | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# Python setup | |
- name: Set up Python environment | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
# Install dependencies | |
# setuptools required by pre-commit | |
- name: Install dependencies | |
run: python -m pip install --upgrade pip setuptools wheel pre-commit pytest poetry | |
# Setup pre-commit cache | |
- name: Setup pre-commit cache | |
id: cache-pre-commit | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-${{ hashFiles('.github/workflows/*.yml', '.pre-commit-config.yaml') }} | |
# Run pre-commit | |
- name: Run pre-commit | |
run: pre-commit run --all-files | |
# Setup poetry cache | |
- name: Get poetry cache dir | |
id: cache-poetry | |
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_OUTPUT | |
- name: Setup poetry cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.cache-poetry.outputs.dir }} | |
key: poetry-${{ hashFiles('.github/workflows/*.yml', '**/pyproject.toml') }} | |
# Install oups | |
- name: Install oups | |
run: poetry install | |
# Run pytest | |
- name: Run pytest | |
run: poetry run pytest |