-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.35 KB
/
CI_first_code_checks.yml
File metadata and controls
52 lines (44 loc) · 1.35 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI first code check
on:
push:
workflow_dispatch:
inputs:
tag:
description: Tag for manually running CI first code check workflow
required: False
default: ''
jobs:
first_check:
name: first code check / python-3.13 / ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Python info
run: |
which python
python --version
- name: Build package and create dev environment
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install --with dev
- name: Show pip list
run: |
pip list
- name: Test with coverage
run: |
poetry run pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml
- name: Correct coverage paths
run: sed -i "s+$PWD/++g" coverage.xml
- name: Run ruff linter
run: ruff check --output-format=github