diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index edf4126..69c0566 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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 @@ -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 @@ -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 @@ -65,14 +65,14 @@ jobs: id: release uses: python-semantic-release/python-semantic-release@v8.3.0 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' @@ -80,16 +80,16 @@ jobs: 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 %} \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file