Re-implement Python parsing #318
Workflow file for this run
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
# 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 GitHub Actions / Python packageInvalid workflow file
|
||
- 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 }}" } |