Restructuring and package #53
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: CI | |
on: | |
# Runs on both push and pull_request events to the main branch. | |
push: | |
branches: | |
- '**' # or master, depending on your default branch | |
pull_request: | |
branches: | |
- main # or master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8.18, 3.9] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: List files # checking if the files are in the right place | |
run: | | |
ls | |
- name: Run tests with pytest | |
run: | | |
pytest | |
- name: Check code formatting with ufmt | |
run: ufmt check . |