Release 2.5.3 #168
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
# | |
# trans-tool | |
# The translation files checker and syncing tool. | |
# | |
# Copyright ©2021-2023 Marcin Orlowski <MarcinOrlowski.com> | |
# https://github.com/MarcinOrlowski/trans-tool/ | |
# | |
name: "Code lint" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master, dev ] | |
jobs: | |
unittests: | |
name: "Linting" | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- name: "Checkout sources" | |
uses: actions/checkout@v4 | |
# https://github.com/marketplace/actions/paths-changes-filter | |
- name: "Look for changed files..." | |
uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
srcs: | |
- '**/*.py' | |
- name: "Installing dependencies..." | |
if: steps.filter.outputs.srcs == 'true' | |
run: pip install -r requirements-dev.txt | |
# https://github.com/marketplace/actions/wemake-python-styleguide | |
# https://wemake-python-stylegui.de/en/latest/pages/usage/integrations/github-actions.html | |
- name: "Running linter..." | |
if: steps.filter.outputs.srcs == 'true' | |
uses: wemake-services/[email protected] |