-
Notifications
You must be signed in to change notification settings - Fork 131
53 lines (51 loc) · 1.68 KB
/
nightly.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
name: "Nightly Build"
on:
schedule:
- cron: "10 1 * * *"
jobs:
nightly-slow-unit-tests:
name: build-test + nightly-slow if changes in the previous 24 hours
runs-on: ubuntu-20.04
container: python:${{ matrix.python }}
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
steps:
- run: python3 --version
- name: Check out code
uses: actions/checkout@v3
- name: Check for code changes
id: check
run: make check-code-changes
- name: Install Python dependencies, Build, and Test
if: ${{ env.should_run == 'true' }}
run: make setup-build-test
- name: Super slow unit tests
if: ${{ env.should_run == 'true' }}
run: make nightly-slow
nightly-run-integration-tests:
name: run-integration-tests if changes in the previous 24 hours
runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Check for code changes
id: check
run: make check-code-changes
- uses: actions/setup-python@v4
if: ${{ env.should_run == 'true' }}
with:
python-version: "${{ matrix.python }}"
- name: Test Python version
if: ${{ env.should_run == 'true' }}
run: |
installed="$(python --version)"
expected="${{ matrix.python }}"
echo $installed
[[ $installed =~ "Python ${expected}" ]] && echo "Configured Python" || (echo "Failed to configure Python" && exit 1)
- name: Integration tests using algod
if: ${{ env.should_run == 'true' }}
run: make algod-integration