-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.08 KB
/
push-main.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
# SPDX-License-Identifier Apache-2.0
# Source: https://github.com/dmyersturnbull/typed-dfs
#
# Build, test, and run static analyses, and send reports to external services
# Runs only on pushing to main
name: Build & test
on:
push:
branches: [main]
jobs:
build:
strategy:
max-parallel: 1
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.11"]
runs-on: "${{ matrix.os }}"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install build meta-dependencies
run: |
pip install 'tox>=4' 'poetry-core>=1.4' 'wheel>=0.36,<1.0'
- name: Test with tox>=4
run: |
tox -v
- name: Update coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install 'coveralls>=3,<4'
coveralls --service=github
if: ${{ matrix.os }} == ubuntu-latest