Skip to content

Commit

Permalink
add realease github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ioangatop committed Mar 19, 2024
1 parent 35bcf69 commit 88e66fd
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
with:
python-versions: "3.10"
- name: Performing lint checks
run: nox -s lint
- name: Performing static type checks
run: nox -s check

tests:
strategy:
Expand All @@ -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/[email protected]
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/[email protected]
with:
python-versions: ${{ matrix.python-version }}
- name: Executing unit tests
run: nox -s test
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
python-versions: "3.10"
- name: Build artifacts
run: |
nox -s build
- name: Test Build
run: |
python -m pip install dist/*.whl
eva --version

0 comments on commit 88e66fd

Please sign in to comment.