diff --git a/.github/workflows/compliance-test.yaml b/.github/workflows/compliance-test.yaml index 0b88a80f..8df2e5a1 100644 --- a/.github/workflows/compliance-test.yaml +++ b/.github/workflows/compliance-test.yaml @@ -31,27 +31,6 @@ on: push: jobs: - build: - runs-on: ubuntu-latest - container: quay.io/ohsu-comp-bio/slurm - steps: - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: ^1.18 - - - name: Check out code - uses: actions/checkout@v2 - - - name: Build - run: make build - - - name: Store funnel - uses: actions/upload-artifact@v2 - with: - name: funnelBin - path: funnel - compliance: strategy: fail-fast: false @@ -59,39 +38,11 @@ jobs: version: [1.1.0] db: ["mongodb"] compute: ["slurm"] - needs: build runs-on: ubuntu-latest container: image: quay.io/ohsu-comp-bio/slurm options: --hostname slurmctl --cap-add sys_admin steps: - # Required to access the 'tests/mongo.config.yml' file - # Perhaps uploading it as an artifact would be more efficient? - - name: Check out code - uses: actions/checkout@v2 - - - uses: actions/download-artifact@v3 - with: - name: funnelBin - - - name: Start Funnel server - run: | - touch config.yml - if [ ${{ matrix.db }} = "mongodb" ]; then - make start-mongodb - cat `pwd`/tests/mongo.config.yml >> config.yml - # Required for Funnel to connect MongoDB - echo "172.17.0.1 localhost" >> /etc/hosts - elif [ ${{ matrix.compute }} = "slurm" ]; then - cat `pwd`/tests/slurm.config.yml >> config.yml - cp config.yml /opt/funnel_config.yml - # Start Slurm - /usr/local/bin/docker-entrypoint.sh - fi - chmod +x funnel - FLAGS="--config `pwd`/config.yml" - ./funnel server run $FLAGS &> funnel.logs & - - name: Install Python 3.7 run: | curl https://pyenv.run | bash @@ -111,6 +62,7 @@ jobs: - name: Install TES compliance suite run: | cd tes-compliance-suite + python3 --version python3 -m venv venv source venv/bin/activate pip install -r requirements.txt