Skip to content

biweekly

biweekly #31

Workflow file for this run

name: biweekly
on:
workflow_dispatch:
schedule:
- cron: '0 5 1,15 * *'
jobs:
test:
name: biweekly_tests
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: "Set up Poetry"
uses: abatilo/actions-poetry@v2
- name: "Set up virtual environment for Poetry"
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: "Cache the virtual environment"
uses: actions/cache@v4
with:
path: ./.venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
- name: "Install infretis"
run: pip install .
- name: "Install turtlemd"
run: pip install turtlemd
- name: "Install pytest"
run: pip install pytest
- name: "Run pytest"
run: poetry run pytest test