Fixed workflows (hopefully).

This commit is contained in:
felix
2023-11-23 16:55:40 +01:00
parent e9bef8d6c3
commit ac24be561e
2 changed files with 13 additions and 13 deletions

View File

@@ -59,20 +59,20 @@ jobs:
uses: pypa/gh-action-pypi-publish@v1.8.6
with:
user: __token__
password: {{ "${{ secrets.PYPI_TOKEN }}" }}
password: "${{ secrets.PYPI_TOKEN }}"
- name: Publish package on TestPyPI
if: "! steps.check-version.outputs.tag"
uses: pypa/gh-action-pypi-publish@v1.8.6
with:
user: __token__
password: {{ "${{ secrets.TEST_PYPI_TOKEN }}" }}
password: "${{ secrets.TEST_PYPI_TOKEN }}"
repository_url: https://test.pypi.org/legacy/
- name: Publish the release notes
uses: release-drafter/release-drafter@v5.23.0
with:
publish: {{ "${{ steps.check-version.outputs.tag != '' }}" }}
tag: {{ "${{ steps.check-version.outputs.tag }}" }}
publish: "${{ steps.check-version.outputs.tag != '' }}"
tag: "${{ steps.check-version.outputs.tag }}"
env:
GITHUB_TOKEN: {{ "${{ secrets.GITHUB_TOKEN }}" }}
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@@ -6,8 +6,8 @@ on:
jobs:
tests:
name: ${{"{{"}} matrix.session {{"}}"}} ${{"{{"}} matrix.python {{"}}"}} / ${{"{{"}} matrix.os {{"}}"}}
runs-on: ${{"{{"}} matrix.os {{"}}"}}
name: ${{ matrix.session }} ${{matrix.python }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
@@ -23,7 +23,7 @@ jobs:
# - { python: "3.10", os: "ubuntu-latest", session: "docs-build" }
env:
NOXSESSION: ${{"{{"}} matrix.session {{"}}"}}
NOXSESSION: ${{ matrix.session }}
FORCE_COLOR: "1"
PRE_COMMIT_COLOR: "always"
@@ -31,10 +31,10 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up Python ${{"{{"}} matrix.python {{"}}"}}
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4.6.1
with:
python-version: ${{"{{"}} matrix.python {{"}}"}}
python-version: ${{ matrix.python }}
- name: Upgrade pip
run: |
@@ -81,13 +81,13 @@ jobs:
if: matrix.session == 'pre-commit'
with:
path: ~/.cache/pre-commit
key: {{ "${{ steps.pre-commit-cache.outputs.result }}-${{ hashFiles('.pre-commit-config.yaml') }}" }}
key: ${{ steps.pre-commit-cache.outputs.result }}-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
{{ "${{ steps.pre-commit-cache.outputs.result }}-" }}
${{ steps.pre-commit-cache.outputs.result }}
- name: Run Nox
run: |
nox --python=${{"{{"}} matrix.python {{"}}"}}
nox --python=${{ matrix.python }}
- name: Upload coverage data
if: always() && matrix.session == 'tests'