| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- name: auto CI
- on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
- schedule:
- - cron: "0 2 * * 1-5"
- env:
- POETRY_VERSION: 1.8.3
- PYTHON_VERSION: "3.12"
- jobs:
- build:
- strategy:
- matrix:
- os: [ubuntu-latest]
- include:
- - os: ubuntu-latest
- path: ~/.cache/pip
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
-
- - name: Set up Python
- id: setup-python
- uses: actions/setup-python@v5
- with:
- python-version: ${{ env.PYTHON_VERSION }}
- - name: Install Poetry ${{ env.POETRY_VERSION }}
- uses: abatilo/actions-poetry@v3.0.0
- with:
- poetry-version: ${{ env.POETRY_VERSION }}
- - uses: actions/cache@v2
- with:
- path: ${{ matrix.path }}
- key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- restore-keys: |
- ${{ runner.os }}-pip-
- - uses: actions/cache@v2
- with:
- path: ~/.local/share/virtualenvs
- key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
-
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- - name: checkin
- run: |
- python main.py checkin
|