Only request profiles 12 hours after day has passed #8
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: "quick-tests" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-sensor-codebase: | |
runs-on: ubuntu-latest | |
steps: | |
# check-out repo and install python 3.9.16 | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.11.4 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11.4 | |
# load cache if available | |
- name: Load cached venv | |
id: cached-venv | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-3.11.4-${{ hashFiles('poetry.lock') }} | |
- name: Load cached sample data | |
id: cached-sample-data | |
uses: actions/cache@v3 | |
with: | |
path: data/testing/container/em27-retrieval-pipeline-test-inputs-1.0.0.tar.gz | |
key: sample-data-1.0.0 | |
# install poetry if venv not in cache | |
- name: Install Poetry | |
if: steps.cached-venv.outputs.cache-hit != 'true' | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.6.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Install dependencies | |
if: steps.cached-venv.outputs.cache-hit != 'true' | |
run: poetry install --with=dev | |
# run test suite | |
- name: Run pytests | |
run: | | |
source .venv/bin/activate | |
pytest -m "ci_quick" --verbose --cov=src tests/ |