Skip to content

Commit

Permalink
more github workflow fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Zulkower committed Nov 18, 2024
1 parent 0462fd6 commit 2ef3bbb
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 74 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
name: Publish to PyPI module
name: Publish to PyPI

on:
release:
types: [created]
types: [published]
workflow_dispatch:
inputs:

permissions:
contents: read

jobs:
publish:
uses: ./.github/workflows/publish_job.yml
deploy:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install setuptools wheel build
- name: Build
run: |
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
32 changes: 0 additions & 32 deletions .github/workflows/publish_job.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release-on-tags.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release and publish on Tag
name: Release on tag

on:
push:
Expand Down
23 changes: 20 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ permissions:

jobs:
test:
uses: ./.github/workflows/test_job.yml
secrets:
GINKGOAI_API_KEY: ${{ secrets.GINKGOAI_API_KEY }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install '.[test]'
- name: Run tests
env:
GINKGOAI_API_KEY: ${{ secrets.GINKGOAI_API_KEY }}
run: |
pytest
34 changes: 0 additions & 34 deletions .github/workflows/test_job.yml

This file was deleted.

0 comments on commit 2ef3bbb

Please sign in to comment.