Skip to content

Functions for dealing with time #14

Functions for dealing with time

Functions for dealing with time #14

Workflow file for this run

name: Python
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Test Python
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
env:
wd: ./
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{github.head_ref}}
- name: Set up poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
id: py
- name: Get requirements
working-directory: ${{env.wd}}
run: |
poetry install --with dev --no-interaction --no-ansi
- name: Linting, formatting, and type checking
working-directory: ${{env.wd}}
run: poetry run pre-commit run --show-diff-on-failure --all-files
- name: Test
working-directory: ${{env.wd}}
run: poetry run pytest -v