From 50bacc4408d43d7a678a2c9601a9e2e83ed0fdc7 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sun, 11 Feb 2024 12:02:53 +0000 Subject: [PATCH] CI: bump actions (#160) * CI: bump actions * cleaner trusted pub - partially reverts #150 - depends on https://github.com/casperdcl/deploy-pypi/pull/18 --- .github/workflows/test.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3e1d824..bf32e8e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,13 +16,13 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - name: Install run: pip install -U -e .[dev] - run: pytest - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 deploy: needs: test name: PyPI Deploy @@ -35,16 +35,14 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.x' - id: dist uses: casperdcl/deploy-pypi@v2 with: build: true - upload: false - - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 + upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') name: Release run: |