Skip to content

API Change Test

API Change Test #267

Workflow file for this run

name: API Change Test
on:
schedule:
- cron: '0 12 * * *'
jobs:
main:
name: Test live api for changes
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up PDM
uses: pdm-project/setup-pdm@v2.5
with:
python-version: "${{ matrix.python-version }}"
- name: Set cache variables
id: set_variables
run: |
echo "::set-output name=PIP_CACHE::$(pip cache dir)"
echo "::set-output name=PDM_CACHE::$(pdm config cache_dir)"
- name: Set up cache
uses: actions/cache@v2
with:
path: |
${{ steps.set_variables.outputs.PIP_CACHE }}
${{ steps.set_variables.outputs.PDM_CACHE }}
key: checks-cache
- name: Resolve dependencies
run: pdm lock
- name: Install dependencies
run: pdm install
- name: Symlink stubs
run: pdm run stubs
- name: Run web tests
run: pdm run pytest -m webtest