-
Notifications
You must be signed in to change notification settings - Fork 343
96 lines (88 loc) · 3.57 KB
/
weekly.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Weekly tests
on:
# Runs at 5:00 UTC on Mondays
schedule:
- cron: "0 5 * * 1"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
latest-python:
name: Linux with Python ${{ matrix.python-version }}
runs-on: ubuntu-20.04
strategy:
matrix:
# see list of available Python versions at https://github.com/actions/python-versions/blob/main/versions-manifest.json
python-version: [3.11.0]
fail-fast: false
outputs:
job_status: ${{ job.status }}
steps:
- run: echo "Job triggered by a ${{ github.event_name }} event on branch is ${{ github.ref }} in repository is ${{ github.repository }}, runner on ${{ runner.os }}"
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -V --version
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Installing Avocado in develop mode
run: python3 setup.py develop --user
- name: Avocado version
run: avocado --version
- name: Avocado smoketest
run: python -m avocado run examples/tests/passtest.py
- name: Tree static check, unittests and fast functional tests
run: |
export AVOCADO_CHECK_LEVEL="1"
python3 selftests/check.py
- name: Archive test logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: job-results-plugins
path: /home/runner/avocado/job-results/
- run: echo "🥑 This job's status is ${{ job.status }}."
without-plugins-latest-python:
name: Test with Python without plugins ${{ matrix.python-version }}
runs-on: ubuntu-20.04
needs: latest-python
if: "always()&&(needs.latest-python.outputs.job_status=='failure')"
strategy:
matrix:
# see list of available Python versions at https://github.com/actions/python-versions/blob/main/versions-manifest.json
python-version: [3.11.0]
fail-fast: false
steps:
- run: echo "Job triggered by a ${{ github.event_name }} event on branch is ${{ github.ref }} in repository is ${{ github.repository }}, runner on ${{ runner.os }}"
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -V --version
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Installing Avocado in develop mode
run: python3 setup.py develop --user --skip-optional-plugins --skip-examples-plugins-tests
- name: Avocado version
run: avocado --version
- name: Tree static check, unittests and fast functional tests without plugins
run: |
export AVOCADO_CHECK_LEVEL="1"
python3 selftests/check.py --disable-plugin-checks golang,html,resultsdb,result_upload,robot,varianter_cit,varianter_pict,varianter_yaml_to_mux
- name: Archive test logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: job-results-without-plugins
path: /home/runner/avocado/job-results/
- run: echo "🥑 This job's status is ${{ job.status }}."