C2DEVEL-XXXX: remove old pyver and bump actions version #80
Workflow file for this run
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: UnitTests | |
on: | |
pull_request: | |
push: | |
jobs: | |
rpmlinter: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: rpmlinter | |
run: | | |
make spec | |
docker run -v "$PWD"/python-boto.spec:/specs/python-boto.spec:z ubun/rpmlinter | |
python_test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-20.04 | |
python-version: | |
- 3.6 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Create .ssh/known_hosts for ssh test | |
run: | | |
mkdir ~/.ssh | |
chmod 0700 ~/.ssh | |
echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts | |
chmod 644 ~/.ssh/known_hosts | |
- name: Install Python ${{ matrix.python-version }} dependencies | |
run: | | |
pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
- name: Run tests | |
run: python tests/test.py default |