nidhal baccouri
commited on
Commit
·
1a2fc67
1
Parent(s):
7ef48a8
fixed yaml syntax
Browse files- .github/workflows/tagged-release.yml +19 -19
- .github/workflows/test.yml +28 -28
.github/workflows/tagged-release.yml
CHANGED
@@ -1,27 +1,27 @@
|
|
1 |
name: "tagged-release"
|
2 |
|
3 |
on:
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
|
14 |
jobs:
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
1 |
name: "tagged-release"
|
2 |
|
3 |
on:
|
4 |
+
push:
|
5 |
+
tags:
|
6 |
+
- "v*"
|
7 |
|
8 |
+
workflow_run:
|
9 |
+
workflows:
|
10 |
+
- "test"
|
11 |
+
types:
|
12 |
+
- completed
|
13 |
|
14 |
jobs:
|
15 |
+
tagged-release:
|
16 |
+
name: "Tagged Release"
|
17 |
+
runs-on: "ubuntu-latest"
|
18 |
|
19 |
+
steps:
|
20 |
+
- name: "Build & test"
|
21 |
+
run: |
|
22 |
+
echo "done!"
|
23 |
|
24 |
+
- uses: "marvinpinto/action-automatic-releases@latest"
|
25 |
+
with:
|
26 |
+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
27 |
+
prerelease: false
|
.github/workflows/test.yml
CHANGED
@@ -5,37 +5,37 @@ on:
|
|
5 |
branches:
|
6 |
- master
|
7 |
- dev
|
8 |
-
pull_request: {}
|
9 |
|
10 |
jobs:
|
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 |
-
|
|
|
5 |
branches:
|
6 |
- master
|
7 |
- dev
|
8 |
+
pull_request: { }
|
9 |
|
10 |
jobs:
|
11 |
+
test:
|
12 |
+
runs-on: ubuntu-latest
|
13 |
+
strategy:
|
14 |
+
matrix:
|
15 |
+
python-version: [ "3.7", "3.8", "3.9" ]
|
16 |
|
17 |
+
steps:
|
18 |
+
- uses: actions/checkout@v2
|
19 |
+
- name: Set up Python ${{ matrix.python-version }}
|
20 |
+
uses: actions/[email protected]
|
21 |
+
with:
|
22 |
+
python-version: ${{ matrix.python-version }}
|
23 |
|
24 |
+
- name: Install poetry
|
25 |
+
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
|
26 |
|
27 |
+
- name: Set up cache
|
28 |
+
uses: actions/[email protected]
|
29 |
+
with:
|
30 |
+
path: .venv
|
31 |
+
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
|
32 |
+
- name: Install dependencies
|
33 |
+
run: |
|
34 |
+
source "$HOME/.poetry/env"
|
35 |
+
poetry config virtualenvs.in-project true
|
36 |
+
poetry install
|
37 |
|
38 |
+
- name: Run tests
|
39 |
+
run: |
|
40 |
+
source "$HOME/.poetry/env"
|
41 |
+
poetry run pytest
|