-
Notifications
You must be signed in to change notification settings - Fork 358
45 lines (38 loc) · 1.11 KB
/
push-tests.yml
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
# ======================================
# WARNING!
# THIS FILE IS GENERATED FROM A TEMPLATE
# DO NOT EDIT THIS FILE MANUALLY!
# ======================================
# The template is located in: push-tests.yml.j2
name: Run tests on push
on:
push:
branches:
- main
- fedora-[0-9]+
permissions:
contents: read
jobs:
unit-tests:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build anaconda-ci container
run: make -f Makefile.am anaconda-ci-build
- name: Run tests in anaconda-ci container
run: |
# put the log in the output, where it's easy to read and link to
make -f Makefile.am container-ci || { cat test-logs/test-suite.log; exit 1; }
- name: Upload test and coverage logs
if: always()
uses: actions/upload-artifact@v4
with:
name: 'logs'
path: test-logs/*
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}