Fix FASTG spec link; fix CI; small style fixes #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |