Skip to content

Commit

Permalink
Test matrix with podman (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhovinne authored Feb 5, 2023
1 parent f357289 commit b89e8de
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 56 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install Task
- name: Get podmatrix
run: |
sh -c "$(curl -ssL https://taskfile.dev/install.sh)" -- -d
echo "./bin" >> $GITHUB_PATH
sudo wget https://raw.githubusercontent.com/jfhovinne/podmatrix/master/podmatrix -O /usr/local/bin/podmatrix
sudo chmod +x /usr/local/bin/podmatrix
- name: Test matrix
run: |
python3 -m venv /tmp/venv/
source /tmp/venv/bin/activate
task test-matrix
podmatrix exec ./test.sh --source . --target /tmp/src --image python \
--tag 3.7 --tag 3.8 --tag 3.9 --tag 3.10 --tag 3.11
6 changes: 0 additions & 6 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,3 @@ tasks:
desc: Execute tests
cmds:
- python -m pytest

test-matrix:
desc: Execute test matrix
cmds:
- pip install dagger-io
- python test-matrix.py
44 changes: 0 additions & 44 deletions test-matrix.py

This file was deleted.

7 changes: 7 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

pip install -r requirements.txt
flake8 --max-line-length=127 gnrt
pip freeze | safety check --stdin
bandit -r gnrt -c .bandit.yml
python -m pytest

0 comments on commit b89e8de

Please sign in to comment.