-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (39 loc) · 1017 Bytes
/
build.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
# This workflow will install Swap package dependencies, run tests and lint with a variety of Python versions.
name: BIP38
on:
push:
branches: [
master
]
pull_request:
branches: [
master
]
jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-name: [
"Python 3.9", "Python 3.10", "Python 3.11", "Python 3.12"
]
python-version: [
"3.9", "3.10", "3.11", "3.12"
]
steps:
- uses: actions/checkout@master
- name: Set up ${{ matrix.python-name }}
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[tests]
- name: Test with PyTest with Coverage
run: |
coverage run -m pytest
coverage report
- name: Submit Coverage Report to Coveralls
if: ${{ matrix.python-version == 3.12 }}
run: coveralls