-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (49 loc) · 1.39 KB
/
build.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
name: Build
on:
push:
pull_request:
types: [ opened, edited ]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
defaults:
run:
shell: bash
name: "${{ matrix.os }} CPython ${{ matrix.python-version }}"
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Set up Python @ ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: "Setup Poetry @ ${{ matrix.python-version }}"
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: "Install deps @ ${{ matrix.python-version }}"
env:
PY_VER: "${{ matrix.python-version }}"
run: |
poetry install
- name: Check it imports
run: |
poetry run python -c 'import aiob2'
- name: Test Suite
env:
BUCKET_ID: ${{ secrets.BUCKET_ID }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
KEY_ID: ${{ secrets.KEY_ID }}
KEY: ${{ secrets.KEY }}
run: |
poetry run pytest