Skip to content

Commit

Permalink
Simplify workflows more
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI committed Sep 12, 2024
1 parent 82183b0 commit 7dbc16f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ jobs:
uses: ./.github/actions/install-deps

- name: Check if package builds
run: |
uv build
echo Current version: $(git describe --tags --abbrev=0 | sed -e "s/^v//")
run: uv build
9 changes: 3 additions & 6 deletions .github/workflows/linting-and-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- master
pull_request:

env:
RUNS_ON: ubuntu-latest

jobs:
pre-commit:
name: Pre-commit
Expand All @@ -32,13 +29,13 @@ jobs:
path: ~/.cache/pre-commit/
key: >
${{ format('pre-commit-{0}-{1}-{2}',
env.RUNS_ON,
runner.os,
matrix.python-version,
hashFiles('.pre-commit-config.yaml')
) }}
restore-keys: |
pre-commit-${{ env.RUNS_ON }}-${{ matrix.python-version }}-
pre-commit-${{ env.RUNS_ON }}-
pre-commit-${{ runner.os }}-${{ matrix.python-version }}-
pre-commit-${{ runner.os }}-
- name: Run pre-commit on all files
run: |
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
release:
types: [published]

env:
RUNS_ON: ubuntu-latest

jobs:
publish:
name: Publish
Expand All @@ -25,5 +22,4 @@ jobs:
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
uvx twine upload dist/*
run: uvx twine upload dist/*

0 comments on commit 7dbc16f

Please sign in to comment.