From 88e66fd0b47c328b87a7d858440c47035931064c Mon Sep 17 00:00:00 2001 From: ioangatop Date: Tue, 19 Mar 2024 13:41:05 +0100 Subject: [PATCH] add realease github workflow --- .github/workflows/CI.yaml | 60 +++++++++++++++++----------------- .github/workflows/release.yaml | 31 ++++++++++++++++++ 2 files changed, 61 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 050cf767..f1b5e269 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -10,21 +10,21 @@ jobs: quality: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setting up PDM - uses: pdm-project/setup-pdm@v4 - with: - python-version: "3.10" - architecture: x64 - - name: Setting up nox - uses: wntrblm/nox@2024.03.02 - with: - python-versions: "3.10" - - name: Performing lint checks - run: nox -s lint - - name: Performing static type checks - run: nox -s check + - name: Checkout + uses: actions/checkout@v4 + - name: Setting up PDM + uses: pdm-project/setup-pdm@v4 + with: + python-version: "3.10" + architecture: x64 + - name: Setting up nox + uses: wntrblm/nox@2024.03.02 + with: + python-versions: "3.10" + - name: Performing lint checks + run: nox -s lint + - name: Performing static type checks + run: nox -s check tests: strategy: @@ -35,18 +35,18 @@ jobs: - "3.10" runs-on: ${{ matrix.os }} steps: - - name: Checkout - uses: actions/checkout@v4 - with: - lfs: true - - name: Setting up PDM - uses: pdm-project/setup-pdm@v4 - with: - python-version: ${{ matrix.python-version }} - architecture: x64 - - name: Setting up nox - uses: wntrblm/nox@2024.03.02 - with: - python-versions: ${{ matrix.python-version }} - - name: Executing unit tests - run: nox -s test + - name: Checkout + uses: actions/checkout@v4 + with: + lfs: true + - name: Setting up PDM + uses: pdm-project/setup-pdm@v4 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + - name: Setting up nox + uses: wntrblm/nox@2024.03.02 + with: + python-versions: ${{ matrix.python-version }} + - name: Executing unit tests + run: nox -s test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..9630cd13 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,31 @@ +name: Release + +on: + push: + tags: + - "*" + +jobs: + release-pypi: + runs-on: ubuntu-latest + permissions: + id-token: write + contents: write + steps: + - uses: actions/checkout@v4 + - name: Setting up PDM + uses: pdm-project/setup-pdm@v4 + with: + python-version: "3.10" + architecture: x64 + - name: Setting up nox + uses: wntrblm/nox@2024.03.02 + with: + python-versions: "3.10" + - name: Build artifacts + run: | + nox -s build + - name: Test Build + run: | + python -m pip install dist/*.whl + eva --version