Skip to content

Add options to precompute the epoch #2023

Add options to precompute the epoch

Add options to precompute the epoch #2023

Workflow file for this run

name: Linting
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- release/*
workflow_call:
workflow_dispatch: {}
defaults:
run:
working-directory: .
jobs:
pre-commit:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
python_version:
- "3.9"
install_version:
- "[dev]"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Cache pip
uses: actions/cache@v3
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py', 'requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Setup
run: |
set -ex
python -m pip install --upgrade pip wheel
python -m pip install -e .${{ matrix.install_version }}
- name: Linting
run: |
pre-commit run --all-files