diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/tests.yml similarity index 80% rename from .github/workflows/pythonpackage.yml rename to .github/workflows/tests.yml index 2c4e303..478587f 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/tests.yml @@ -1,23 +1,31 @@ -name: Python package +name: tets + +on: + push: + branches: + - "**" + tags: + - "!**" + workflow_call: + -on: [push] env: - POETRY_VERSION: 1.8 + POETRY_VERSION: 1.8.2 permissions: pull-requests: write jobs: - testing: + Tests: runs-on: ubuntu-24.04 strategy: matrix: PYTHON_VERSION: ["3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{matrix.PYTHON_VERSION}} - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{matrix.PYTHON_VERSION}} @@ -26,18 +34,15 @@ jobs: shell: bash run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") - - name: Install poetry - shell: bash - run: | - python -m pip install --upgrade pip - pip install poetry==${{env.POETRY_VERSION}} - - - name: Configure poetry - shell: bash - run: poetry config virtualenvs.in-project true + - name: Install and configure Poetry + uses: snok/install-poetry@v1 + with: + version: ${{env.POETRY_VERSION}} + installer-parallel: true + virtualenvs-in-project: true - name: Set up cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: cache with: path: .venv