Skip to content

Commit

Permalink
reverted to previous ci-cd file
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekB19 committed Jan 30, 2025
1 parent 886a75c commit 14de4a5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "{{ cookiecutter.python_version }}"
python-version: "3.9"

- name: Check-out repository
uses: actions/checkout@v3
Expand All @@ -24,12 +24,12 @@ jobs:
run: poetry install

- name: Test with pytest
run: poetry run pytest tests/ --cov={{ cookiecutter.__package_slug }} --cov-report=xml
run: poetry run pytest tests/ --cov=pysorting --cov-report=xml

- name: Use Codecov to track coverage
uses: codecov/codecov-action@v5
with:
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml # coverage report

- name: Build documentation
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "{{ cookiecutter.python_version }}"
python-version: "3.9"

- name: Check-out repository
uses: actions/checkout@v3
Expand All @@ -65,31 +65,31 @@ jobs:
id: release
uses: python-semantic-release/[email protected]
with:
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
with:
repository-url: https://test.pypi.org/legacy/
password: {% raw %}${{ secrets.TEST_PYPI_API_TOKEN }}{% endraw %}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

- name: Test install from TestPyPI
if: steps.release.outputs.released == 'true'
run: |
pip install \
--index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple \
{{ cookiecutter.__package_slug }}
pysorting
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
with:
password: {% raw %}${{ secrets.PYPI_API_TOKEN }}{% endraw %}
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 14de4a5

Please sign in to comment.