remove a cast that's no longer necessary #1230
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check and publish | |
on: push | |
permissions: | |
contents: "write" | |
packages: "write" | |
pull-requests: "read" | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: ["3.9", "3.13"] | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
robot_version: ["6.1.1", "from lockfile"] | |
pytest_version: ["8.0", "from lockfile"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- run: ./pw uv sync | |
- run: ./pw uv add robotframework==${{ matrix.robot_version }} | |
if: ${{ matrix.robot_version != 'from lockfile' }} | |
- run: ./pw uv add pytest==${{ matrix.pytest_version }} | |
if: ${{ matrix.pytest_version != 'from lockfile' }} | |
- run: ./pw test | |
static_checks: | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: ["3.9", "3.13"] | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- run: ./pw uv sync --locked | |
- run: ./pw typecheck | |
- name: ruff check | |
if: always() | |
run: ./pw uv run ruff check --output-format github | |
- name: ruff format | |
if: always() | |
run: ./pw uv run ruff format --check --diff | |
- run: ./pw pylint --output-format=github | |
if: always() | |
- run: ./pw robotcode | |
if: always() | |
- run: ./pw robocop | |
if: always() | |
- run: ./pw robotidy | |
publish: | |
runs-on: "ubuntu-latest" | |
if: github.ref == 'refs/heads/master' | |
needs: | |
- static_checks | |
- test | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
pull-requests: read | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ./pw uv build | |
- run: ./pw uv publish | |
- name: get version number | |
id: current-version | |
# https://github.com/astral-sh/uv/issues/6298 | |
run: echo ::set-output name=CURRENT_VERSION::$(./pw uv run python -c "from pytest_robotframework._internal import __version__;print(__version__)") | |
- uses: marvinpinto/action-automatic-releases@v1.2.1 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: false | |
files: dist/* | |
automatic_release_tag: ${{ steps.current-version.outputs.CURRENT_VERSION }} |