test #4
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: fedora | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Podman | |
run: | | |
sudo apt update | |
sudo apt-get -y install podman | |
podman pull fedora:38 | |
- name: Get source | |
uses: actions/checkout@v3 | |
- name: Create container and run tests | |
run: | | |
{ | |
echo 'FROM fedora:38' | |
echo 'RUN dnf -y update' | |
echo 'RUN dnf -y install python3 koji copr-cli' | |
echo 'RUN cp config/copr.repo /etc/yum.repos.d/python313.repo' | |
echo 'RUN chmod +x ./action/run.sh' | |
echo 'RUN ./action/run.sh' | |
} > podmanfile | |
podman build --tag fedora38test -f ./podmanfile |