Skip to content

WIP

WIP #2

Workflow file for this run

---
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure git
run: |
git config --global url."https://x-oauth-basic:${{ secrets.GITHUB_TOKEN }}@github.com/frontierdigital".insteadOf https://github.com/frontierdigital
- id: get_python_version
name: Get Python version
run: |
set -euo pipefail
python_version=$(cat ${GITHUB_WORKSPACE}/.python-version)
echo "Python version: ${python_version}"
echo "python_version=$python_version" >> "$GITHUB_OUTPUT"
- uses: actions/setup-python@v4
with:
python-version: ${{ steps.get_python_version.outputs.python_version }}
- name: Setup pipenv
run: python -m pip install --upgrade pipenv wheel
- id: cache-pipenv
uses: actions/cache@v3
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}-ci
- name: Install
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: make install_ci
env:
PIPENV_DEV: true
- name: Test
run: make test