This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (65 loc) · 2.09 KB
/
continuous-integration.yaml
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
name: continuous integration
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
build-wheels:
name: build wheels
runs-on: ubuntu-latest
strategy:
fail-fast: false # So we can see which things fail
matrix:
include:
# CPython/stretch
- docker_image: python:2.7-stretch
twine_repo: stretch
- docker_image: python:3.6-stretch
twine_repo: stretch
- docker_image: python:3.7-stretch
twine_repo: stretch
# CPython/buster
- docker_image: python:2.7-buster
twine_repo: buster
- docker_image: python:3.6-buster
twine_repo: buster
- docker_image: python:3.7-buster
twine_repo: buster
# CPython/bullseye
- docker_image: python:3.6-bullseye
twine_repo: bullseye
- docker_image: python:3.7-bullseye
twine_repo: bullseye
- docker_image: python:3.8-bullseye
twine_repo: bullseye
- docker_image: python:3.9-bullseye
twine_repo: bullseye
# PyPy/buster
- docker_image: pypy:2.7-7.3.5-buster
twine_repo: buster
- docker_image: pypy:3.6-7.3.3-buster
twine_repo: buster
# PyPy/bullseye
- docker_image: pypy:3.7-7.3.5-bullseye
twine_repo: bullseye
steps:
- uses: actions/checkout@v2
- name: Build packages
run: |
mkdir -p wheelhouse
docker pull ${{ matrix.docker_image }}
./build.sh -d ${{ matrix.docker_image }}
- name: Publish packages
if: ${{ success() && github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: praekeltorg
password: ${{ secrets.TWINE_PASSWORD }}
repository_url: https://${{ matrix.twine_repo }}.wheelhouse.praekelt.org
packages_dir: wheelhouse/
verify_metadata: false
skip_existing: true
verbose: true