refactor: discover translation languages from the shipped files #106
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: SemanticRelease | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| concurrency: release | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: 3.12 | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install uv | |
| uv pip install -r requirements-dev.txt --python 3.12 --system | |
| uv pip install robotframework-browser --python 3.12 --system | |
| - name: Lint files | |
| run: inv lint | |
| - name: Run unit tests | |
| run: inv utest | |
| - name: Run acceptance tests | |
| run: | | |
| rfbrowser init chromium | |
| inv atest | |
| - uses: actions/upload-artifact@v7 | |
| if: ${{ always() }} | |
| with: | |
| name: Test_results_release | |
| path: atest/output | |
| - name: Python Semantic Release | |
| id: release | |
| uses: python-semantic-release/python-semantic-release@v10.6.2 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build package | |
| run: python -m build | |
| if: steps.release.outputs.released == 'true' | |
| - name: Publish package to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| if: steps.release.outputs.released == 'true' | |
| - name: Publish package to GitHub Release | |
| uses: python-semantic-release/upload-to-gh-release@v9.8.9 | |
| if: steps.release.outputs.released == 'true' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| tag: ${{ steps.release.outputs.tag }} |