Skip to content

Commit

Permalink
Merge pull request #28 from konflux-ci/github-actions
Browse files Browse the repository at this point in the history
Configure github action to run tests
  • Loading branch information
lubomir authored Jul 30, 2024
2 parents 5ae756b + 2089fbc commit 3bb302e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Python package

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fedora-version: [39, 40, rawhide]

steps:
- name: Set up podman
run: |
sudo apt update
sudo apt-get -y install podman
podman pull registry.fedoraproject.org/fedora:${{ matrix.fedora-version }}
- uses: actions/checkout@v4
- name: Test with pytest
run: |
{
echo 'FROM registry.fedoraproject.org/fedora:${{ matrix.fedora-version }}'
echo 'RUN dnf install -y python3-pip python3-dnf'
echo 'WORKDIR /src'
echo 'RUN python3 -m pip install . pytest'
echo 'RUN pytest -v'
} > podmanfile
podman build -v $(pwd):/src --tag test -f ./podmanfile

0 comments on commit 3bb302e

Please sign in to comment.