Skip to content

Commit

Permalink
more changes to the github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
derNarr committed Apr 25, 2024
1 parent 84a52db commit 7275d5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
poetry-version: [1.2]
python-version: ['3.9', '3.10', '3.11', '3.12']
poetry-version: ['1.8.2']
fail-fast: false
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
19 changes: 2 additions & 17 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,8 @@ jobs:
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Update PATH
if: ${{ runner.os != 'Windows' }}
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Update Path for Windows
if: ${{ runner.os == 'Windows' }}
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH

- name: Configure poetry
run: poetry config virtualenvs.in-project true

- name: Set up cache
uses: actions/cache@v3
id: cache
with:
path: .venv
key: venv-cache-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: View poetry --help
run: poetry --help

- name: Install dependencies
run: poetry install
Expand Down

0 comments on commit 7275d5e

Please sign in to comment.