ci: use second-latest python version #237
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: Checks | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ">3.9 <3.X" # second-latest minor Python release | |
- name: Install Python dependencies | |
run: | | |
# prerequisites | |
python -m pip install --upgrade pip wheel | |
python -m pip install flake8 pytest | |
# install dependencies | |
pip install -r requirements.txt | |
# install latest version of dcoraid | |
pip install git+https://github.com/DCOR-dev/DCOR-Aid.git | |
# show installed packages | |
pip freeze | |
- name: Test with pytest | |
env: | |
DCOR_API_KEY: ${{ secrets.DCOR_API_KEY }} | |
run: | | |
py.test tests | |
- name: Lint with flake8 | |
run: | | |
flake8 --exclude _version.py . | |