Add default settings form #9
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: Make sure created plugins work | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
name: lint and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install system dependencies | |
run: sudo apt update && sudo apt install gettext | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.11 | |
cache: "pip" | |
- name: Install cookiecutter | |
run: pip install cookiecutter | |
- name: Run cookiecutter | |
run: cookiecutter . --no-input | |
- name: Init git repo (required for check-manifest) | |
run: git config --global user.email "[email protected]" && git config --global user.name "Your Name" && git init && git add . && git commit -m 'Initial commit' | |
working-directory: pretalx-foobar | |
- name: Install pretalx | |
run: pip install pretalx | |
working-directory: pretalx-foobar | |
- name: Install Dependencies | |
run: pip install isort flake8 black docformatter twine check-manifest pytest pytest-django -Ue . | |
working-directory: pretalx-foobar | |
- name: Run check-manifest | |
run: check-manifest . | |
working-directory: pretalx-foobar | |
- name: Build package | |
run: python setup.py sdist | |
working-directory: pretalx-foobar | |
- name: Check package | |
run: twine check dist/* | |
working-directory: pretalx-foobar | |
- name: Run tests | |
run: py.test tests | |
working-directory: pretalx-foobar |