gh actions tests - downgrade ubuntu version for 3.6 #7
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: Ruly platform tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install requirements | |
run: "pip install -r requirements.txt" | |
- name: Build wheel | |
run: "doit dist" | |
- name: Upload wheel | |
uses: "actions/upload-artifact@master" | |
with: | |
name: wheel | |
path: ./dist | |
test: | |
needs: ["build"] | |
runs-on: ubuntu-20-04 | |
strategy: | |
matrix: | |
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Download Ruly wheel | |
uses: actions/download-artifact@master | |
with: | |
name: wheel | |
path: ./dist | |
- name: Run tests | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest ./dist/*.whl | |
pytest |