File: tests.yml

package info (click to toggle)
pychurchtools 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 408 kB
  • sloc: python: 2,060; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: run linting & tests

on:
  pull_request:

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: install dependencies
        run: python3 -m pip install poetry pre-commit
      - name: install dependencies
        run: |
          poetry install
          pre-commit install --install-hooks
      - name: run pre-commit
        run: pre-commit run --all
      - name: pytest
        run: poetry run pytest
        env:
          CHURCHTOOLS_URL: ${{ secrets.CHURCHTOOLS_URL }}
          CHURCHTOOLS_USER: ${{ secrets.CHURCHTOOLS_USER }}
          CHURCHTOOLS_PASSWORD: ${{ secrets.CHURCHTOOLS_PASSWORD }}