build(deps): bump arrow from 1.2.3 to 1.3.0 #259
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: "Automated Tests" | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- ".github/workflows/automated-tests.yml" | |
- ".github/actions/**" | |
- "**.py" | |
- "pyproject.toml" | |
- "poetry.lock" | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
paths: | |
- ".github/workflows/automated-tests.yml" | |
- ".github/actions/**" | |
- "**.py" | |
- "pyproject.toml" | |
- "poetry.lock" | |
env: | |
VALENTINA_LOG_FILE: "/tmp/valentina.log" | |
VALENTINA_DB_PATH: "/tmp/valentina.sqlite" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-python-code: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- name: Harden Security Runner | |
uses: step-security/harden-runner@v2 | |
with: | |
egress-policy: block | |
disable-sudo: true | |
allowed-endpoints: > | |
api.github.com:443 | |
api.snapcraft.io:443 | |
codecov.io:443 | |
files.pythonhosted.org:443 | |
github.com:443 | |
install.python-poetry.org:443 | |
pypi.org:443 | |
python-poetry.org:443 | |
storage.googleapis.com:443 | |
uploader.codecov.io:443 | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# ---------------------------------------------- | |
# install dependencies | |
# ---------------------------------------------- | |
- name: Setup Python and Poetry | |
uses: ./.github/actions/setup-poetry | |
# ---------------------------------------------- | |
# run linters | |
# ---------------------------------------------- | |
- name: lint with ruff | |
run: poetry run ruff --extend-ignore=I001,D301,D401 src/ | |
- name: check pyproject.toml | |
run: poetry run poetry check | |
# ---------------------------------------------- | |
# run test suite | |
# ---------------------------------------------- | |
- name: Run tests with pytest | |
run: | | |
poetry run coverage run | |
poetry run coverage report | |
poetry run coverage xml | |
# ---------------------------------------------- | |
# upload coverage stats | |
# ---------------------------------------------- | |
- name: Upload coverage | |
if: github.ref == 'refs/heads/main' && matrix.python-version == '3.11' | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: reports/coverage.xml | |
fail_ci_if_error: true |