-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (55 loc) · 1.63 KB
/
configstore.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
name: configstore
on:
push:
workflow_dispatch:
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Create matrix
uses: fabiocaccamo/create-matrix-action@v3
id: make_matrix
with:
matrix: |
python-version {3.11}, tox-env {py311,py311-pydotenv,coverage,pkg}
python-version {3.10}, tox-env {py310}
outputs:
matrix: ${{ steps.make_matrix.outputs.matrix }}
test:
runs-on: ubuntu-latest
needs: prepare
strategy:
fail-fast: false
matrix:
include: ${{fromJson(needs.prepare.outputs.matrix)}}
steps:
- uses: actions/checkout@v3.5.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.7.0
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: 'pyproject.toml'
- uses: actions/cache@v3.3.1
with:
path: |
.tox
key: configstore-${{ matrix.tox-env }}-v2-${{ hashFiles('pyproject.toml') }}
restore-keys: configstore-${{ matrix.tox-env }}-v2-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test with tox (${{ matrix.tox-env }})
run: tox -e ${{ matrix.tox-env }}
slack-workflow-status:
runs-on: ubuntu-latest
if: always()
needs:
- test
steps:
- name: Send Slack notification
uses: Gamesight/slack-workflow-status@v1.2.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}