WIP #94
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| CI: | |
| # https://github.com/actions/runner-images | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| architecture: x64 | |
| - name: Check build env | |
| run: | | |
| echo "pwd: $(pwd)" | |
| echo "USER: $USER" | |
| echo "HOME: $HOME" | |
| echo "SHELL: $SHELL" | |
| echo "PATH: $PATH" | |
| python3 --version | |
| pip3 --version | |
| - name: Get pip cache directory | |
| id: pip-cache | |
| run: | | |
| echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
| - name: Cache pip dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ steps.pip-cache.outputs.dir }} | |
| key: ${{ runner.os }}-python-3.11-${{ hashFiles('**/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-python-3.11-${{ hashFiles('**/requirements.txt') }} | |
| ${{ runner.os }}-python-3.11- | |
| - name: Setup | |
| run: | | |
| # pip install binary to $HOME/.local/bin | |
| # export PATH="$PATH:$HOME/.local/bin" | |
| # | |
| # https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path | |
| echo "/home/runner/.local/bin" >> $GITHUB_PATH |