Cleanup -> Remove comment #113
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: Testing Springcraft | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Check code style | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install ruff | |
run: pip install ruff==0.5.2 | |
- name: Check code formatting | |
run: ruff format --diff | |
- name: Lint code base | |
run: ruff check | |
test: | |
name: Testing | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: springcraft-dev | |
auto-update-conda: true | |
python-version: '3.10' | |
- name: Installing dependencies | |
run: conda install -c conda-forge poetry pytest | |
- name: Building distribution | |
run: poetry build -f wheel | |
- name: Installing distribution | |
run: pip install ./dist/*.whl | |
- name: Testing code | |
run: pytest |