diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..743a212 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: test + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: astral-sh/setup-uv@v3 + + - name: Build + run: uv build + + - name: Publish package + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'WeblateOrg/language-data' + run: uv publish --trusted-publishing always diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0fe2f07..6348c1f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,8 +19,10 @@ jobs: with: python-version: ${{ matrix.python-version }} + - uses: astral-sh/setup-uv@v3 + - name: Install - run: pip install -e .[tests] + run: uv pip install --system -e .[tests] - name: Test run: pytest