typo #24
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
# .github/workflows/test.yml | |
name: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.12', '3.13'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Hatch | |
run: | | |
pip install hatch # Install hatch for dependency management | |
shell: bash | |
- name: Install environment using Hatch | |
run: | | |
hatch env create # Create a new environment | |
shell: bash | |
- name: run tests | |
run: | | |
hatch run pytest test/ # Run tests using pytest | |
shell: bash | |
# Many issue installing just and calling it in windows (using hatch directly instead of justfile) | |
#- name: Install dependencies using Just | |
# run: just install # This will run `hatch env create` via the justfile | |
# shell: bash | |
#- name: Run tests using Just | |
# run: just test # This will run the 'test' task from justfile | |
# shell: bash |