Skip to content

Commit

Permalink
Make sure the plugin cookiecutter works
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Oct 3, 2023
1 parent d3ec02f commit c5d6862
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Try result

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

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-superplugin
- name: Install pretalx
run: pip install pretalx
working-directory: pretalx-superplugin
- name: Install Dependencies
run: pip install isort flake8 black docformatter twine check-manifest pytest pytest-django -Ue .
working-directory: pretalx-superplugin
- name: Run isort
run: isort -c .
working-directory: pretalx-superplugin
- name: Run flake8
run: flake8 .
working-directory: pretalx-superplugin
- name: Run black
run: black --check .
working-directory: pretalx-superplugin
- name: Run check-manifest
run: check-manifest .
working-directory: pretalx-superplugin
- name: Build package
run: python setup.py sdist
working-directory: pretalx-superplugin
- name: Check package
run: twine check dist/*
working-directory: pretalx-superplugin
- name: Run tests
run: py.test tests
working-directory: pretalx-superplugin

0 comments on commit c5d6862

Please sign in to comment.