forked from robocorp/robocorp
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (80 loc) · 2.01 KB
/
Copy pathstorage_tests.yml
File metadata and controls
86 lines (80 loc) · 2.01 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
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
# Note: auto-generated by `_gen_workflows.py`
name: Asset Storage Tests
'on':
push:
branches:
- master
- wip
paths:
- storage/**
- .github/workflows/storage_tests.yml
- devutils/**
pull_request:
branches:
- master
paths:
- storage/**
- .github/workflows/storage_tests.yml
- devutils/**
defaults:
run:
working-directory: ./storage
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name:
- ubuntu-py3.8-devmode
- windows-py3.8-devmode
- macos-py3.8-devmode
include:
- name: ubuntu-py3.8-devmode
python: '3.8'
os: ubuntu-latest
- name: windows-py3.8-devmode
python: '3.8'
os: windows-latest
- name: macos-py3.8-devmode
os: macos-latest
python: '3.8'
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: poetry
- name: Install devutils requirements
run: python -m pip install -r ../devutils/requirements.txt
- name: Install project (not dev)
if: contains(matrix.name, '-devmode') == false
run: inv install
- name: Install project (dev)
if: contains(matrix.name, '-devmode')
run: inv devinstall
- name: Test
env:
GITHUB_ACTIONS_MATRIX_NAME: ${{ matrix.name }}
CI_CREDENTIALS: ${{ secrets.CI_CREDENTIALS }}
CI_ENDPOINT: ${{ secrets.CI_ENDPOINT }}
run: inv test
- name: '`inv lint`, potentially fixed with `inv pretty`'
if: always()
run: '
inv lint
'
- name: '`inv typecheck`'
if: always()
run: '
inv typecheck
'
- name: '`inv docs` with checking on files changed'
if: always()
run: '
inv docs --check
'