Skip to content

Commit

Permalink
ci: rename pythonpackage to tests, upate action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 authored Feb 21, 2025
1 parent 9a6bcf3 commit a6ba167
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/pythonpackage.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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}}

Expand All @@ -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
Expand Down

0 comments on commit a6ba167

Please sign in to comment.