Skip to content

Commit

Permalink
merge two jobs to one
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdp committed Oct 26, 2024
1 parent a75dbf9 commit 6d2fe5a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 24 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/lint.yml

This file was deleted.

31 changes: 30 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,50 @@ permissions:
id-token: write

jobs:
deploy:
linter:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["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 }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Analysing the code with ruff
run: |
ruff check $(git ls-files '*.py')
deploy:
runs-on: ubuntu-latest
needs: linter

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.10.3

0 comments on commit 6d2fe5a

Please sign in to comment.