actually that was a bad excuse. heres a better one #466
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: | |
check: | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- run: ./pw pdm lock --check | |
- run: ./pw install | |
- run: ./pw run mypy -p pytest_robotframework | |
- run: ./pw run mypy tests | |
- run: ./pw run pyright | |
- run: ./pw run black --check --diff . | |
- run: ./pw run ruff . | |
- run: ./pw run pylint pytest_robotframework tests | |
- run: ./pw test | |
- run: ./pw run robocop | |
- run: ./pw run robotidy --color --check --diff . | |
publish: | |
runs-on: 'ubuntu-latest' | |
if: github.ref == 'refs/heads/master' | |
needs: check | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
pull-requests: read | |
steps: | |
- uses: actions/checkout@v2 | |
- run: ./pw pdm publish | |
- name: get version number | |
id: current-version | |
run: echo ::set-output name=CURRENT_VERSION::$(./pw pdm show --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 }} |