Skip to content

Commit

Permalink
add release trial
Browse files Browse the repository at this point in the history
  • Loading branch information
elrandira committed May 1, 2023
1 parent 4f9fa48 commit 419ed09
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Validation
name: Release

on:
push:
branches:
- master
tags:
- v**
on:
release:
types: [published]

permissions:
contents: read
Expand All @@ -33,4 +30,4 @@ jobs:
python -m pip install -e .[dev]
- name: publish
run: invoke publish_test
run: invoke publish
37 changes: 37 additions & 0 deletions .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Release

on:
push:
tags:
- test**

permissions:
contents: read

jobs:
release:

runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .
python -m pip install -e .[dev]
- name: build
run: python setup.py bdist_wheel

- name: publish
run: python -m twine upload --repository testpypi dist/*
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pytest
pytest-cov
coverage
flake8
invoke

0 comments on commit 419ed09

Please sign in to comment.