Bump version to 2.0.0 #34
This file contains hidden or 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: CI | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| lint: | |
| name: Lint soure code | |
| runs-on: ubuntu-latest | |
| container: python:3.13-bookworm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup packages | |
| run: | | |
| pip install pretalx==2025.2.2 | |
| pip install -e .[dev] | |
| - run: make lint | |
| test_legacy: | |
| name: Test with known-good pretalx release and minimal supported Python | |
| runs-on: ubuntu-latest | |
| container: python:3.10-bookworm | |
| permissions: | |
| # Required for "EnricoMi/publish-unit-test-result-action" | |
| checks: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install pretalx release | |
| run: pip install pretalx==2025.2.2 | |
| - run: pip install -e .[dev] | |
| - name: Get vendored dependencies | |
| run: | | |
| apt-get --yes update | |
| apt-get --yes install curl | |
| ./build_vendored.py | |
| - name: Collect assets | |
| run: django-admin collectstatic --noinput | |
| env: | |
| DJANGO_SETTINGS_MODULE: pretalx.settings | |
| - run: pytest --junitxml=pytest-results.xml tests | |
| - name: Publish test results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| files: pytest-results.xml | |
| comment_mode: "off" | |
| - name: Archive test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: pytest-results-legacy | |
| path: pytest-results.xml | |
| if-no-files-found: error | |
| test_head: | |
| name: Test with current pretalx HEAD and recent Python | |
| runs-on: ubuntu-latest | |
| container: python:3.14-bookworm | |
| permissions: | |
| checks: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pretalx from Git | |
| working-directory: /tmp | |
| run: | | |
| apt-get --yes update | |
| apt-get --yes install git | |
| git clone https://github.com/pretalx/pretalx.git | |
| pip install ./pretalx | |
| - run: pip install -e .[dev] | |
| - name: Get vendored dependencies | |
| run: | | |
| apt-get --yes install curl | |
| ./build_vendored.py | |
| - name: Collect assets | |
| run: django-admin collectstatic --noinput | |
| env: | |
| DJANGO_SETTINGS_MODULE: pretalx.settings | |
| - run: pytest --junitxml=pytest-results.xml tests | |
| - name: Publish test results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| files: pytest-results.xml | |
| comment_mode: "off" | |
| - name: Archive test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: pytest-results-head | |
| path: pytest-results.xml | |
| if-no-files-found: error | |
| build: | |
| name: Execute project build | |
| runs-on: ubuntu-latest | |
| container: python:3.13-bookworm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| apt-get --yes update | |
| apt-get --yes install curl | |
| pip install build | |
| - run: make build | |
| - name: Archive build results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-dist | |
| path: dist/* | |
| if-no-files-found: error |