This is an automated email from the ASF dual-hosted git repository. tn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tooling-atr-experiments.git
The following commit(s) were added to refs/heads/main by this push: new 73b3c3c add build workflow 73b3c3c is described below commit 73b3c3c32d23a69c1dc89f34e13551d6ed60a1a1 Author: Thomas Neidhart <t...@apache.org> AuthorDate: Thu Feb 20 13:42:24 2025 +0100 add build workflow --- .github/workflows/build.yml | 52 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9db9e52 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: Build and test + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +env: + LATEST_PY_VERSION: '3.13' + POETRY_VERSION: '2.0.1' + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: + - '3.13' + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 + with: + python-version: ${{ matrix.python-version }} + - uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1 + with: + virtualenvs-in-project: true + version: ${{ env.POETRY_VERSION }} + + # Cache packages per python version, and reuse until lockfile changes + - name: Cache python packages + id: cache + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 + with: + path: .venv + key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} + - name: Install dependencies + #if: steps.cache.outputs.cache-hit != 'true' + run: poetry sync -v --without=dev + + # Run tests + - name: Run tests + run: | + source $VENV + pytest -rs tests --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tooling.apache.org For additional commands, e-mail: dev-h...@tooling.apache.org