Skip to content

Commit

Permalink
Update CI.yaml
Browse files Browse the repository at this point in the history
Remove pre-build steps
  • Loading branch information
IvanildoBarauna authored Aug 12, 2024
1 parent 142eb10 commit c611ea1
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests and Pre-build
name: Tests

on:
pull_request:
Expand Down Expand Up @@ -41,27 +41,27 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml

pre_build:
if: github.actor != 'actions[bot]'
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

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

- name: Poetry Setup
run: |
pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
poetry install
# pre_build:
# if: github.actor != 'actions[bot]'
# runs-on: ubuntu-latest
# needs: test
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# with:
# ref: ${{ github.head_ref }}

# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.9'

# - name: Poetry Setup
# run: |
# pip install --upgrade pip
# curl -sSL https://install.python-poetry.org | python3 -
# poetry config virtualenvs.create false
# poetry install

# - name: Generate and push Tag
# run: |
Expand All @@ -72,18 +72,18 @@ jobs:
# git push -f origin --tags


- name: Build package
run: poetry build
# - name: Build package
# run: poetry build

- name: Repository Setup
run: |
poetry config repositories.test-pypi https://test.pypi.org/legacy/
# - name: Repository Setup
# run: |
# poetry config repositories.test-pypi https://test.pypi.org/legacy/

- name: Publish package to TestPyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.TEST_PYPI_TOKEN }}
run: poetry publish -r test-pypi -u __token__ --password $POETRY_PYPI_TOKEN_PYPI
# - name: Publish package to TestPyPI
# env:
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.TEST_PYPI_TOKEN }}
# run: poetry publish -r test-pypi -u __token__ --password $POETRY_PYPI_TOKEN_PYPI

environment:
name: Development
url: https://test.pypi.org/project/currency-quote/
# url: https://test.pypi.org/project/currency-quote/

0 comments on commit c611ea1

Please sign in to comment.