Skip to content

Commit

Permalink
ci: fix and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Verhoog committed Sep 21, 2023
1 parent 91a8446 commit 450695a
Showing 1 changed file with 11 additions and 30 deletions.
41 changes: 11 additions & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install project
run: pip install .
- name: Run command
python-version: '3.11'
- name: Check formatting
run: |
pip3 install riot
riot -v run -s black -- --check .
Expand All @@ -24,48 +22,31 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: '3.11'
- name: Install project
run: pip install .
- name: Run command
run: |
pip3 install riot
python -m pip install riot
riot -v run -s mypy
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install project
run: pip install .
python-version: '3.11'
- name: Run command
run: |
pip3 install riot
python -m pip install riot
riot -v run -s flake8
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", pypy-3.7]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-22.04
container: ghcr.io/kyle-verhoog/envier/test:9a354f873fd50fbd439ef0bfa1e59893107d7282
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup Python 3 (for riot)
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install project
run: |
pip install setuptools
pip install .
- name: Run tests
run: |
python3.9 -m pip install riot
riot -v run --python=${{ matrix.python-version }} smoke-test
riot -v run --python=${{ matrix.python-version }} tests
pip install riot==0.18.0 # last version that supports Python 2.7, 3.5
riot -v run -p3.6 smoke-test
riot -v run -p3.6 tests

0 comments on commit 450695a

Please sign in to comment.