-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 984 Bytes
/
test.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
on:
push:
branches:
- dev
tags:
- "*"
pull_request:
branches:
- dev
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3
- run: pip install --upgrade pipx
- name: Create repository
run: |
pipx run cookiecutter --no-input ${{ github.workspace }}
git init /tmp/python_boilerplate
working-directory: /tmp
- name: Build new package
run: pipx run build /tmp/python_boilerplate
- name: Check packages
run: pipx run twine check /tmp/python_boilerplate/dist/*
- name: Upload packages
uses: actions/upload-artifact@v3
with:
name: dist
path: /tmp/python_boilerplate/dist/