-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 1.03 KB
/
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
name: Tests
on:
workflow_dispatch:
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build image
run: |
docker buildx build --output type=docker --no-cache . -t sdk-rust-contract-builder:next -f ./Dockerfile
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest
- name: Run tests
run: |
export PYTHONPATH=.
pytest .
python ./integration_tests/test_project_folder_and_packaged_src_are_equivalent.py
python ./integration_tests/test_previous_builds_are_reproducible.py --selected-builds "a.1" "a.2" "a.3" "a.4"
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: testdata_output
path: |
./testdata/output/**/*.*
if-no-files-found: error