File: testing.yml

package info (click to toggle)
python-apsystems-ez1 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,328 kB
  • sloc: python: 697; makefile: 5
file content (35 lines) | stat: -rw-r--r-- 894 bytes parent folder | download
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
28
29
30
31
32
33
34
35
name: "Test code"

env:
  COLUMNS: 120

on:
  push:
    branches: ["master", "main"]
  pull_request:

jobs:
  pytest:
    name: "Pytest"
    strategy:
      matrix:
        python-version: ["3.11", "3.12"]
    runs-on: "ubuntu-latest"
    env:
      OS: "ubuntu-latest"
      PYTHON: "${{ matrix.python-version }}"
    steps:
      - name: "โคต๏ธ Check out code from GitHub"
        uses: "actions/checkout@v4"
      - name: "๐Ÿ Set up Python ${{ matrix.python-version }}"
        uses: "actions/setup-python@v4"
        with:
          python-version: "${{ matrix.python-version }}"
      - name: "โš™๏ธ Install Poetry"
        uses: "abatilo/actions-poetry@v2.3.0"
        with:
          poetry-version: 1.5.1
      - name: "โš™๏ธ Install dependencies"
        run: "poetry install"
      - name: "๐Ÿš€ Run pytest with coverage"
        run: poetry run pytest --cov=APsystemsEZ1 tests/