Added unit tests for the upper function #70
Workflow file for this run
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
name: Python package | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
# BUG | |
# fix bash script running on windows then uncomment | |
# os: [ubuntu-latest, windows-latest] | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
make install | |
- name: Check code style with black | |
run: | | |
make code-style | |
- name: Check import order with isort | |
run: | | |
make import-check | |
- name: Lint with flake8 | |
run: | | |
make linting | |
- name: Check static type checking with mypy | |
run: | | |
make typecheck | |
# TODO | |
# add binaries to cache and make them available for library. Then uncomment | |
# - name: Test with pytest | |
# run: | | |
# make tests | |
- name: Test package build without pre-installed AF binaries | |
run: | | |
bash ./scripts/build_package_without_binaries.sh |