-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.26 KB
/
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
38
39
# From
# https://github.com/fedarko/strainFlye/blob/main/.github/workflows/main.yml
name: pyfastg CI
on: [push, pull_request]
jobs:
build:
# Stopgap solution -- "ubuntu-latest" (22.04, as of writing) no longer
# supports Python 3.6. See https://github.com/fedarko/pyfastg/issues/10.
runs-on: ubuntu-20.04
strategy:
matrix:
# Gotta specify 3.10 as a string to avoid it being converted to 3.1:
# https://github.com/actions/setup-python/issues/160
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11"]
steps:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
- name: Check out code
uses: actions/checkout@v3
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install pyfastg (and its pip dependencies)
run: pip install -e .[dev]
- name: Run tests
run: make test
- name: Lint and stylecheck
run: make stylecheck
- name: Upload code coverage information to Codecov
uses: codecov/codecov-action@v2