Skip to content

Re-implement Python parsing #318

Re-implement Python parsing

Re-implement Python parsing #318

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push: { branches: [ "develop" ], tags: [ "*" ] }
pull_request: { branches: [ "develop" ] }
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.x"]
project: ["docspec", "docspec-python", "docspec-python[experimental]"]
steps:
- uses: actions/checkout@v3
- uses: NiklasRosenstein/slap@gha/install/v1
- uses: actions/setup-python@v3
with: { python-version: "${{ matrix.python-version }}" }
- run: slap install --only ${{ matrix.project }} --no-venv-check -v
- run: DOCSPEC_TEST_NO_DEVELOP=true slap test ${{ matrix.project }}
if: ${{ !endsWith(matrix.propject, '[experimental]' }}

Check failure on line 26 in .github/workflows/python.yml

View workflow run for this annotation

GitHub Actions / Python package

Invalid workflow file

The workflow is not valid. .github/workflows/python.yml (Line: 26, Col: 11): Unexpected end of expression: ''[experimental]''. Located at position 28 within expression: !endsWith(matrix.propject, '[experimental]'
- run: DOCSPEC_TEST_NO_DEVELOP=true slap test docspec-python
if: ${{ endsWith(matrix.propject, '[experimental]') }}
changelog-update:
name: "Insert the Pull Request URL into new changelog entries"
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: NiklasRosenstein/slap@gha/changelog/update/v2
with: { version: '*' }
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: NiklasRosenstein/slap@gha/install/v1
- run: slap install --no-venv-check --only-extras docs
- run: slap run --no-venv-check docs:build
- uses: JamesIves/[email protected]
if: github.ref == 'refs/heads/develop'
with: { branch: gh-pages, folder: docs/_site, ssh-key: "${{ secrets.DEPLOY_KEY }}" }