Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detach the publish workflow from the test/lint #18

Merged
merged 2 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
tags:
- '*'

name: Release

jobs:
testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ "3.8" ]
os: [ "ubuntu-latest" ]
name: Release
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
cache: true

- name: Install dependencies
run: pdm install -v && pdm info

- name: Publish on git tags
run: make publish
env:
PYPI_UNAME: __token__
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml → .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ on:
push:
branches:
- 'main'
tags:
- '*'
pull_request:
branches:
- '*'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ test = [
source = "scm"

[project]
name = "pytest_when"
name = "pytest-when"
dynamic = ["version"]
description = "Utility which makes mocking more readable and controllable"
authors = [
Expand Down
Loading