diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 24426639..d3931ddb 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -1,6 +1,6 @@ # This workflow will build and upload a Python Package to TestPyPI # https://github.com/marketplace/actions/pypi-publish -name: Testing Building and Publish Python Package to TestPyPI +name: Test Building + Publishing to TestPyPI on: push: branches: [main, develop] diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9a9f5694..a98e2c24 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,4 +1,4 @@ -name: Push Workflow +name: Lint, test + build docs on: [push] @@ -28,15 +28,15 @@ jobs: run: | python -m pip install --upgrade pip pip install -e .[tests] - - name: Run Ruff + - name: Lint run: ruff check --output-format=github network_wrangler - - name: Run tests with coverage and benchmarking + - name: Run tests run: | pytest --junitxml=pytest.xml --cov-report "xml:coverage.xml" --benchmark-save=benchmark --benchmark-json=benchmark.json - name: Build docs run: | mike deploy --push ${{ github.ref_name }} - - name: Update latest alias if on main branch + - name: Update latest docs if: github.ref == 'refs/heads/main' run: | mike alias latest ${{ github.ref_name }} --push @@ -62,4 +62,3 @@ jobs: with: pytest-xml-coverage-path: coverage.xml junitxml-path: pytest.xml - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad50c9b2..4fdcf4a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,6 @@ # This workflow will build and upload a Python Package to PyPI # https://github.com/marketplace/actions/pypi-publish -name: Publish Python Package 📦 to PyPI +name: Build + Publish Python Package 📦 to PyPI on: release: types: [created] @@ -69,4 +69,4 @@ jobs: pip install -e .[docs] - name: Build docs run: | - mike deploy --push --update-aliases latest ${{ github.ref_name }} \ No newline at end of file + mike deploy --push --update-aliases latest ${{ github.ref_name }}