Added copy of latest pdf #532
This file contains 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: Test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths-ignore: | |
- "research/**" | |
- "**.ipynb" | |
- "**.md" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "research/**" | |
- "**.ipynb" | |
- "**.md" | |
jobs: | |
test: | |
if: github.event.pull_request.draft == false | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: ["3.10"] | |
name: Test (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Update environment | |
run: | | |
poetry env use ${{ matrix.python-version }} && poetry install --with=test,cloud | |
- name: Pytest | |
run: poetry run pytest -n auto -s | |
- name: Report failures on Slack | |
if: failure() && github.event.repository.default_branch == github.event.workflow_run.head_branch | |
id: slack | |
uses: slackapi/slack-github-action@v1.19.0 | |
with: | |
# Slack channel id, channel name, or user id to post message. | |
# See also: https://api.slack.com/methods/chat.postMessage#channels | |
channel-id: C02TC2DAN74 | |
# For posting a simple plain text message | |
slack-message: "*Build failure on default branch!* 😱\nhttps://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
lint: | |
if: github.event.pull_request.draft == false | |
timeout-minutes: 15 | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pre-commit | |
run: pipx install pre-commit | |
- name: set PY | |
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | |
- name: Cache pre-commit | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
id: precommitcache | |
# The hooks will be installed automatically when pre-commit run is | |
# called. But it's nice to do it separately for more visibility in the | |
# GitHub interface into where a failure happens and how long each step | |
# takes. | |
- name: Install pre-commit hooks | |
run: pre-commit install --install-hooks | |
- name: Run all pre-commit checks on all files | |
run: pre-commit run --color=always -a | |
if: github.ref == 'refs/heads/main' | |