-
-
Notifications
You must be signed in to change notification settings - Fork 43
52 lines (51 loc) · 1.32 KB
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
poetry-version: ["latest", "main", "1.2.2", "1.3.2", "1.4.2", "1.5.1", "1.6.1"]
os: [ubuntu-22.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: ./
with:
poetry-version: ${{ matrix.poetry-version }}
- name: View poetry --help
run: poetry --help
ci-all:
runs-on: ubuntu-latest
needs: [ci]
steps:
- run: |
echo "All matrix jobs have completed successfully!"
release:
if: github.event_name == 'push'
needs: ci-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Generate release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
- name: Update major tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git tag -d v2
git push --delete origin v2
git push origin :refs/tags/v2
git tag v2
git push --tags